From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto 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 18:35:57 +0200 Message-ID: <87mx6jzgr6.fsf@gmail.com> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334075836 9280 80.91.229.3 (10 Apr 2012 16:37:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 Apr 2012 16:37:16 +0000 (UTC) To: 11194@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 10 18:37:14 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 1SHe4A-0007Xw-5r for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Apr 2012 18:37:14 +0200 Original-Received: from localhost ([::1]:42800 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHe49-0003W6-Hb for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Apr 2012 12:37:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHe43-0003UR-3K for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 12:37:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHe3w-0007JL-Sd for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 12:37:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHe3w-0007JF-P7 for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 12:37:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SHe4w-0004pQ-DM for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 12:38:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <877gxrbz1p.fsf@rbdash.i-did-not-set--mail-host-address--so-tickle-me> Resent-From: Thierry Volpiatto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Apr 2012 16:38: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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.133407586018527 (code B ref -1); Tue, 10 Apr 2012 16:38:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Apr 2012 16:37:40 +0000 Original-Received: from localhost ([127.0.0.1]:49042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHe4Z-0004ol-MA for submit@debbugs.gnu.org; Tue, 10 Apr 2012 12:37:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46185) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHe4X-0004od-8F for submit@debbugs.gnu.org; Tue, 10 Apr 2012 12:37:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHe3S-0007Bk-Mk for submit@debbugs.gnu.org; Tue, 10 Apr 2012 12:36:34 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:38484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHe3S-0007Be-Jb for submit@debbugs.gnu.org; Tue, 10 Apr 2012 12:36:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41326) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHe3M-0003BB-C6 for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 12:36:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHe3H-00076r-DQ for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 12:36:23 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:48743) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHe3H-00076W-7Z for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 12:36:19 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SHe3C-0006tU-3g for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 18:36:14 +0200 Original-Received: from lbe83-2-78-243-104-167.fbx.proxad.net ([78.243.104.167]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Apr 2012 18:36:14 +0200 Original-Received: from thierry.volpiatto by lbe83-2-78-243-104-167.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Apr 2012 18:36:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: lbe83-2-78-243-104-167.fbx.proxad.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (gnu/linux) Cancel-Lock: sha1:ydKg5NXwp1Th9jmoIJAjAKgqpEM= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:58701 Archived-At: Hi Michael, Michael Albinus writes: > And, btw, people who don't like the current behaviour are free to add > > alias sudo *sudo $* Most people use such an alias because eshell/sudo is not working with commands where files are not involved e.g "eshell/sudo uname -a" or "eshell/sudo fdisk -l" etc... ==> ssh: connect to host localhost port 22: Connection refused Using default-directory instead of /sudo:user@localhost: (which use ssh port 22!!!!) fix it --8<---------------cut here---------------start------------->8--- (let ((default-directory (if (string= host "localhost") default-directory (format "/sudo:%s@%s:%s" user host dir)))) --8<---------------cut here---------------end--------------->8--- But maybe I missed something? -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997