[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: |
Thierry Volpiatto |
Subject: |
bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system |
Date: |
Tue, 10 Apr 2012 18:35:57 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (gnu/linux) |
Hi Michael,
Michael Albinus <michael.albinus@gmx.de> writes:
> And, btw, people who don't like the current behaviour are free to add
>
> alias sudo *sudo $*
Most people use such an alias because eshell/sudo is not working with
commands where files are not involved
e.g "eshell/sudo uname -a" or "eshell/sudo fdisk -l" etc...
==> ssh: connect to host localhost port 22: Connection refused
Using default-directory instead of
/sudo:user@localhost:<default-directory> (which use ssh port 22!!!!)
fix it
--8<---------------cut here---------------start------------->8---
(let ((default-directory (if (string= host "localhost")
default-directory
(format "/sudo:%s@%s:%s" user host dir))))
--8<---------------cut here---------------end--------------->8---
But maybe I missed something?
--
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
- bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system, (continued)
- 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
- bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system, Michael Albinus, 2012/04/20
- bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system, Stefan Monnier, 2012/04/20
- bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system, Michael Albinus, 2012/04/22
- bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system, Stefan Monnier, 2012/04/23
- bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system, Michael Albinus, 2012/04/25
- bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system,
Thierry Volpiatto <=
- 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, Michael Albinus, 2012/04/20
- bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system, Thierry Volpiatto, 2012/04/20