From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system Date: Wed, 25 Apr 2012 11:32:17 +0200 Message-ID: <87fwbsupge.fsf@gmx.de> References: <877gxrbz1p.fsf@rbdash.i-did-not-set--mail-host-address--so-tickle-me> <87obr2cwtu.fsf@gmx.de> <87ehrwdbhs.fsf@gmx.de> <87r4vwqd3q.fsf@gmx.de> <87zkajsn4e.fsf@gmx.de> <87r4vvsjor.fsf@gmx.de> <87ehriseyx.fsf@gmx.de> <87k417sloc.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1335346404 16626 80.91.229.3 (25 Apr 2012 09:33:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Apr 2012 09:33:24 +0000 (UTC) Cc: Cray Elliott , 11194@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 25 11:33:22 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SMyb9-0005pp-2Z for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Apr 2012 11:33:19 +0200 Original-Received: from localhost ([::1]:46667 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMyb8-0002KN-DA for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Apr 2012 05:33:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMyb5-0002K1-7D for bug-gnu-emacs@gnu.org; Wed, 25 Apr 2012 05:33:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SMyb0-0000Jd-D4 for bug-gnu-emacs@gnu.org; Wed, 25 Apr 2012 05:33:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50429) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMyb0-0000JZ-9M for bug-gnu-emacs@gnu.org; Wed, 25 Apr 2012 05:33:10 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SMybp-0000hq-QR for bug-gnu-emacs@gnu.org; Wed, 25 Apr 2012 05:34:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Apr 2012 09:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11194 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11194-submit@debbugs.gnu.org id=B11194.13353464022667 (code B ref 11194); Wed, 25 Apr 2012 09:34:01 +0000 Original-Received: (at 11194) by debbugs.gnu.org; 25 Apr 2012 09:33:22 +0000 Original-Received: from localhost ([127.0.0.1]:51463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SMybB-0000gy-JE for submit@debbugs.gnu.org; Wed, 25 Apr 2012 05:33:22 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:51867) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SMyb8-0000gk-N3 for 11194@debbugs.gnu.org; Wed, 25 Apr 2012 05:33:20 -0400 Original-Received: (qmail invoked by alias); 25 Apr 2012 09:32:19 -0000 Original-Received: from p57BB96CB.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.150.203] by mail.gmx.net (mp069) with SMTP; 25 Apr 2012 11:32:19 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19QLaopHuNQ5cdc6BM8tj7y8vo2nOxPjsG5ruKbcE cA+KL4QcR2ZpLo In-Reply-To: (Stefan Monnier's message of "Mon, 23 Apr 2012 21:52:36 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:59474 Archived-At: Stefan Monnier writes: > The problem is the following: > - eshell/sudo has the same name as /usr/bin/sudo but does something > slightly different. > - eshell/rm has the same name as /bin/rm but does something > slightly different. That's the idea of eshell's built-ins. > - the combination of the two leads to "sudo rm" doing something less > slightly different. Again, it does what you could expect from *eshell*. If you do not want this behaviour, you could use *shell*. Or you could mask the built-in by prepending a "*" to the command, as described. > I don't use Eshell myself, so I'm not sure what the best way to > fix this. Maybe it's eshell/rm that needs fixing, maybe Eshell should > change to use different name for its `sudo', or maybe the solution > should be yet different. The question is whether a command being an argument of "sudo" shall still behave like other eshell commands. This is not only true for "rm" (being `eshell/rm'), but for all commands which could be a valid Lisp command. > Stefan Best regards, Michael.