Subject: bug#5072: 23.1.50; Eshell fail with sudo command

From: Michael Albinus <[email-masked]>
Date: Sun, 29 Nov 2009 21:52:34 +0100

Thierry Volpiatto <[email-masked]> writes:

> Hi,

Hi,

> Eshell fail with commands like this:
> (i use this type of command in eshell since a while and sudo is well configured)
>
> ,----
> | sudo emerge -av somepackage
> `----
>
> I end up with:
>
> ,----
> | Sorry, user thierry is not allowed to execute '/bin/bash' as root on tux.
> | exit
> | 
> | Process *tramp/sudo root@localhost* exited abnormally with code 1
> `----

I've added recently an eshell implementation for su and sudo, using
Tramp. This requires to run bash, indeed.

In order to keep your original behaviour, you shall call

,----
| *sudo emerge -av somepackage
`----

Escaping a command with "*" is eshell's syntax to apply the real command,
instead of its emulation.

Best regards, Michael.