From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system Date: Tue, 10 Apr 2012 09:01:11 -0400 Message-ID: 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334062937 28574 80.91.229.3 (10 Apr 2012 13:02:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 Apr 2012 13:02:17 +0000 (UTC) Cc: Cray Elliott , 11194@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 10 15:02:15 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 1SHai4-0002vx-96 for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Apr 2012 15:02:12 +0200 Original-Received: from localhost ([::1]:53587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHai3-0002KW-NZ for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Apr 2012 09:02:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHai0-0002FB-Gy for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 09:02:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHahu-0000cm-4m for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 09:02:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHahu-0000cg-1q for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 09:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SHais-0007yS-Fq for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 09:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Apr 2012 13:03:02 +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.133406293730592 (code B ref 11194); Tue, 10 Apr 2012 13:03:02 +0000 Original-Received: (at 11194) by debbugs.gnu.org; 10 Apr 2012 13:02:17 +0000 Original-Received: from localhost ([127.0.0.1]:48215 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHai8-0007xM-52 for submit@debbugs.gnu.org; Tue, 10 Apr 2012 09:02:16 -0400 Original-Received: from ironport-out.teksavvy.com ([206.248.143.162]:29916) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHai5-0007xE-Ja for 11194@debbugs.gnu.org; Tue, 10 Apr 2012 09:02:13 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjEKACxOgk9sr+pC/2dsb2JhbABDtheCDAOBDIEIggoBBVYjEAs0EhQYDSSIIbYyi2GEeQSkRYFdgwM X-IronPort-AV: E=Sophos;i="4.75,391,1330923600"; d="scan'208";a="173074030" Original-Received: from 108-175-234-66.dsl.teksavvy.com (HELO pastel.home) ([108.175.234.66]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 10 Apr 2012 09:01:11 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 6E15C589AF; Tue, 10 Apr 2012 09:01:11 -0400 (EDT) In-Reply-To: <87r4vwqd3q.fsf@gmx.de> (Michael Albinus's message of "Tue, 10 Apr 2012 09:07:21 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) 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:58691 Archived-At: >>>> 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