Subject: Re: bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system

From: Stefan Monnier <[email-masked]>
Date: Tue, 10 Apr 2012 09:01:11 -0400

>>>> 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':
>> That does not in itself explain why it doesn't do the right thing: the
>> intention seems fairly clear.
> Sure.
> The problem is `rm', which is another built-in.  Built-ins are not aware
> of being called in a `su(do)?' context.

Sounds like a bug in eshell/sudo: it should not use builtins.

        Stefan