[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: |
Sat, 13 Feb 2021 13:00:53 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Pierre Neidhardt <mail@ambrevar.xyz> writes:
> I don't remember what I had in mind when I initially posted the issue,
> but I suppose that I reported it because I noticed an inconsistency
> between "sudo" and "*sudo".
>
> That said, Bash does not expand aliases before sudo. So maybe the right
> thing to do is to have "*sudo" behave the same way as well, to be
> consistent with what users may be familiar with (Bash).
In Emacs 28, they do work the same:
~/src/emacs/trunk $ alias c 'cp $*'
~/src/emacs/trunk $ sudo c foo /etc/bar
[sudo] password for larsi:
sudo: c: command not found
~/src/emacs/trunk $ *sudo c foo /etc/bar
[sudo] password for larsi:
sudo: c: command not found
So that's consistent, and probably the correct way to behave. So I'm
closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no