[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths o
From: |
Michael Albinus |
Subject: |
bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system |
Date: |
Mon, 09 Apr 2012 20:08:15 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>> For example, if you went to eshell and typed 'sudo rm -rf
>>> /opt/folder' it would complain about permissions being needed and
>>> wouldn't query for password. Bug doesn't exist with relative paths.
>>> Bug does exist with wildcards.
>> If you want to use absolute paths in eshell, you should apply
>> rm -rf /sudo::/opt/folder
>
> While using Tramp might make sense, I think that "sudo rm -rf /foo/bar"
> is a perfectly valid command and wonder why it wouldn't work correctly.
In eshell, `sudo' is an built-in for `eshell/sudo':
~ $ which sudo
eshell/sudo is a compiled Lisp function in `em-unix.el'
In order to call the native sudo, one must apply
*sudo rm -rf /opt/folder
See also (info "(eshell)Built-ins")
> Stefan
Best regards, Michael.
- bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system, Cray Elliott, 2012/04/07
- bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system, Michael Albinus, 2012/04/08
- bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system, Stefan Monnier, 2012/04/08
- bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system,
Michael Albinus <=
- bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system, Stefan Monnier, 2012/04/09
- bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system, Michael Albinus, 2012/04/10
- bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system, Stefan Monnier, 2012/04/10
- bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system, Michael Albinus, 2012/04/10
- bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system, Stefan Monnier, 2012/04/10
- bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system, Michael Albinus, 2012/04/10
- bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system, Stefan Monnier, 2012/04/10
- bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system, Thierry Volpiatto, 2012/04/10
- bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system, Thierry Volpiatto, 2012/04/10
- bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system, Stefan Monnier, 2012/04/10