[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#28320: 25.2; Eshell/TRAMP's sudo does not work with aliases
From: |
Lars Ingebrigtsen |
Subject: |
bug#28320: 25.2; Eshell/TRAMP's sudo does not work with aliases |
Date: |
Fri, 05 Feb 2021 12:24:42 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Pierre Neidhardt <ambrevar@gmail.com> writes:
> Using TRAMP's sudo, in Eshell:
>
> $ alias c 'cp $*'
> $ sudo c foo /etc/bar
> /bin/cp: cannot create regular file 'bar': Permission denied
>
> (Assuming that the user does not have write permissions to /etc.)
>
> As a work around, it is possible to use "*sudo".
Trying to reproduce this in Emacs 28 gives me a different, and more
logical (?) result:
~/src/emacs/trunk $ alias c 'cp $*'
~/src/emacs/trunk $ sudo c foo /etc/bar
[sudo] password for larsi:
sudo: c: command not found
Is this working as designed, or is eshell supposed to expand the alias
before calling sudo?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#28320: 25.2; Eshell/TRAMP's sudo does not work with aliases,
Lars Ingebrigtsen <=