From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 07 14:14:24 2012 Received: (at submit) by debbugs.gnu.org; 7 Apr 2012 18:14:24 +0000 Received: from localhost ([127.0.0.1]:44083 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SGa9X-0000wR-Ob for submit@debbugs.gnu.org; Sat, 07 Apr 2012 14:14:24 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58134) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SGTA9-0006j6-7S for submit@debbugs.gnu.org; Sat, 07 Apr 2012 06:46:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SGT9P-00005C-IG for submit@debbugs.gnu.org; Sat, 07 Apr 2012 06:45:49 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:35305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGT9P-000057-E6 for submit@debbugs.gnu.org; Sat, 07 Apr 2012 06:45:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGT9N-0008TE-3y for bug-gnu-emacs@gnu.org; Sat, 07 Apr 2012 06:45:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SGT9K-00004r-KO for bug-gnu-emacs@gnu.org; Sat, 07 Apr 2012 06:45:44 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:61623) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGT9K-0008WQ-DX for bug-gnu-emacs@gnu.org; Sat, 07 Apr 2012 06:45:42 -0400 Received: by obbta14 with SMTP id ta14so4851963obb.0 for ; Sat, 07 Apr 2012 03:45:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type :x-gm-message-state; bh=XFhICmHRtiGQj8qDpeUpakIqqvWj5Db+VVcjD3TqyvA=; b=PIuKPhlAGWqTLtIVb1MhYUFQseQ2tk4lr7J1BktwfP9LAWCnT6lbjRvr7PzVOPANC+ DcqbfDtEIfsQ002BqzXs+PF0SI1t1sV/3zB57aurL+avAs579Axgy+a/DbKp/cwbKUQn W7PQkjFLzqGPitD41pdsVi0PtFMajhCbPv/VlH/t2YkGXlN0M6L/gclpRtvuhQEf+u6G wp8aGnCnRmzt/K/EYtOlYA8wAH66gIp09HOeSSEv1e93UVO/lBOo+wVLItIg/KLX2OMJ 7pxnG5sc6rM48/N5pk0cv6C9/cYPoujSnbQ5FuwTNF4evgsZa+JZB8XeY0sXXUf4Ored woPg== Received: by 10.182.74.42 with SMTP id q10mr1307993obv.52.1333795539235; Sat, 07 Apr 2012 03:45:39 -0700 (PDT) Received: from rbdash (ip24-253-84-33.lv.lv.cox.net. [24.253.84.33]) by mx.google.com with ESMTPS id h5sm7434001oba.17.2012.04.07.03.45.36 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 07 Apr 2012 03:45:38 -0700 (PDT) From: Cray Elliott To: bug-gnu-emacs@gnu.org Subject: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system Date: Sat, 07 Apr 2012 03:45:38 -0700 Message-ID: <877gxrbz1p.fsf@rbdash.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain X-Gm-Message-State: ALoCoQmQZtcGmK6GAXmS6DlUctXTx6TR9dtgVsUzqszHGzpE4a3/3wVDY7Ex/AxrjHpYbYsyK4wK 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-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 07 Apr 2012 14:14:23 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) For example, if you went to eshell and typed 'sudo rm -rf /opt/folder' it would complain about permissions being needed and wouldn't query for password. Bug doesn't exist with relative paths. Bug does exist with wildcards. In GNU Emacs 24.0.95.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of 2012-04-07 on rbdash Windowing system distributor `The X.Org Foundation', version 11.0.11104000 Configured using: `configure '--prefix=/usr' '--sysconfdir=/etc' '--localstatedir=/var' '--libexecdir=/usr/lib' '--mandir=/usr/share/man' '--without-sound' '--with-xft' '--with-x-toolkit=gtk' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: evil-mode: t evil-local-mode: t global-undo-tree-mode: t undo-tree-mode: t shell-dirtrack-mode: t global-auto-complete-mode: t auto-complete-mode: t diff-auto-refine-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x C-b C-x 1 M-x r e p o r t - e m b Recent messages: ("emacs") Loading "/home/cray/.emacs.d/byte-cache/home!cray!.emacs.d!el-get!color-theme!themes!color-theme-example.elc" as "/home/cray/.emacs.d/el-get/color-theme/themes/color-theme-example.el"...done Loading "/home/cray/.emacs.d/byte-cache/home!cray!.emacs.d!el-get!color-theme!themes!color-theme-library.elc" as "/home/cray/.emacs.d/el-get/color-theme/themes/color-theme-library.el"...done ad-handle-definition: `evil-mode' got redefined [38 times] Starting Emacs daemon. When done with this frame, type C-x 5 0 Making completion list... Load-path shadows: /home/cray/.emacs.d/el-get/dired-plus/dired+ hides /home/cray/.emacs.d/el-get/dired+/dired+ /home/cray/.emacs.d/el-get/emacschrome/servers/el-get hides /home/cray/.emacs.d/el-get/el-get/el-get /home/cray/.emacs.d/el-get/cmake-mode/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /home/cray/.emacs.d/el-get/remember/remember hides /usr/share/emacs/24.0.95/lisp/textmodes/remember /home/cray/.emacs.d/el-get/magit/.dir-locals hides /usr/share/emacs/24.0.95/lisp/gnus/.dir-locals Features: (shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils server ampc-autoloads re-builder .loaddefs arduino-mode cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs vkill sudo-save smarttabs remember-autoloads qmake-mode pkgbuild-mode sh-script executable pastebin muse-journal muse-book cus-edit cus-start cus-load muse-project muse-latex muse-html muse-xml-common muse-protocols muse-regexps derived muse muse-nested-tags muse-publish muse-autoloads list-processes+ linum-off linum linum-ex icomplete+ icomplete go-mode flyguess flyspell ispell evil-core undo-tree rect evil-vars dired-view dired-sync dired-single dired-details dired-x ediff-merg ediff-diff ediff-wind ediff-mult ediff-help ediff-init ediff-util dired-aux cssh tramp tramp-compat auth-source eieio assoc gnus-util time-date mm-util mail-prsvr password-cache shell pcomplete format-spec tramp-loaddefs term disp-table ehelp electric ibuffer command-frequency color-theme-twilight color-theme wid-edit cmake-mode thingatpt byte-code-cache buffer-move windmove browse-kill-ring auto-complete-config auto-complete edmacro kmacro preview-latex tex-site auto-loads info anything byte-opt warnings advice advice-preload any-ini-mode imenu ahg grep compile comint ansi-color ewoc log-edit ring pcvs-util add-log diff-mode easy-mmode popup el-get help-mode easymenu view autoload help-fns bytecomp byte-compile cconv macroexp cl package tabulated-list dired regexp-opt tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 08 07:01:33 2012 Received: (at 11194) by debbugs.gnu.org; 8 Apr 2012 11:01:33 +0000 Received: from localhost ([127.0.0.1]:44443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SGpsA-0007AP-Nn for submit@debbugs.gnu.org; Sun, 08 Apr 2012 07:01:32 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:34173) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SGps4-0007AB-1h for 11194@debbugs.gnu.org; Sun, 08 Apr 2012 07:01:26 -0400 Received: (qmail invoked by alias); 08 Apr 2012 11:00:32 -0000 Received: from p57BB840B.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.132.11] by mail.gmx.net (mp036) with SMTP; 08 Apr 2012 13:00:32 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX180WOtQ7/U0hKUNaUwHdddfOyxrnIgS3UZ30nROBK GAGN3Ie1D4F2F7 From: Michael Albinus To: Cray Elliott Subject: Re: bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system References: <877gxrbz1p.fsf@rbdash.i-did-not-set--mail-host-address--so-tickle-me> Date: Sun, 08 Apr 2012 13:00:29 +0200 In-Reply-To: <877gxrbz1p.fsf@rbdash.i-did-not-set--mail-host-address--so-tickle-me> (Cray Elliott's message of "Sat, 07 Apr 2012 03:45:38 -0700") Message-ID: <87obr2cwtu.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11194 Cc: 11194@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Cray Elliott writes: > For example, if you went to eshell and typed 'sudo rm -rf /opt/folder' > it would complain about permissions being needed and wouldn't query > for password. Bug doesn't exist with relative paths. Bug does exist with wildcards. If you want to use absolute paths in eshell, you should apply rm -rf /sudo::/opt/folder Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 08 09:25:17 2012 Received: (at control) by debbugs.gnu.org; 8 Apr 2012 13:25:17 +0000 Received: from localhost ([127.0.0.1]:44543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SGs7I-0002jF-W8 for submit@debbugs.gnu.org; Sun, 08 Apr 2012 09:25:17 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:48176) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SGs7F-0002j7-Jb for control@debbugs.gnu.org; Sun, 08 Apr 2012 09:25:15 -0400 Received: from bb121-6-72-34.singnet.com.sg ([121.6.72.34]:43150 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SGs6Q-0000hj-AW for control@debbugs.gnu.org; Sun, 08 Apr 2012 09:24:22 -0400 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 11194 Date: Sun, 08 Apr 2012 21:24:16 +0800 Message-ID: <87sjgegxvj.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) close 11194 thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 08 22:21:47 2012 Received: (at 11194) by debbugs.gnu.org; 9 Apr 2012 02:21:47 +0000 Received: from localhost ([127.0.0.1]:45851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SH4Ek-0007ez-PQ for submit@debbugs.gnu.org; Sun, 08 Apr 2012 22:21:46 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183]:25253) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SH4Ei-0007er-Om for 11194@debbugs.gnu.org; Sun, 08 Apr 2012 22:21:45 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AicFAKU/KE/O+KRD/2dsb2JhbACBX5x7eYhwnhmDNIJlBJsZhAk X-IronPort-AV: E=Sophos;i="4.73,1,1325480400"; d="scan'208";a="172797343" Received: from 206-248-164-67.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([206.248.164.67]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 08 Apr 2012 22:20:50 -0400 Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 5FF15AE203; Sun, 8 Apr 2012 22:20:50 -0400 (EDT) From: Stefan Monnier To: Michael Albinus Subject: Re: bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system Message-ID: References: <877gxrbz1p.fsf@rbdash.i-did-not-set--mail-host-address--so-tickle-me> <87obr2cwtu.fsf@gmx.de> Date: Sun, 08 Apr 2012 22:20:50 -0400 In-Reply-To: <87obr2cwtu.fsf@gmx.de> (Michael Albinus's message of "Sun, 08 Apr 2012 13:00:29 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11194 Cc: Cray Elliott , 11194@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >> For example, if you went to eshell and typed 'sudo rm -rf >> /opt/folder' it would complain about permissions being needed and >> wouldn't query for password. Bug doesn't exist with relative paths. >> Bug does exist with wildcards. > If you want to use absolute paths in eshell, you should apply > rm -rf /sudo::/opt/folder 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. Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 09 14:09:22 2012 Received: (at 11194) by debbugs.gnu.org; 9 Apr 2012 18:09:22 +0000 Received: from localhost ([127.0.0.1]:47183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHJ1k-000701-Qq for submit@debbugs.gnu.org; Mon, 09 Apr 2012 14:09:21 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:38640) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SHJ1h-0006zo-9B for 11194@debbugs.gnu.org; Mon, 09 Apr 2012 14:09:19 -0400 Received: (qmail invoked by alias); 09 Apr 2012 18:08:19 -0000 Received: from p57BB97FB.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.151.251] by mail.gmx.net (mp028) with SMTP; 09 Apr 2012 20:08:19 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18cG7kvzqwcB26BpbapYhuzE0rqaUMzsjQ70im2B/ jaFEWhlB4HPJKb From: Michael Albinus To: Stefan Monnier Subject: Re: bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system References: <877gxrbz1p.fsf@rbdash.i-did-not-set--mail-host-address--so-tickle-me> <87obr2cwtu.fsf@gmx.de> Date: Mon, 09 Apr 2012 20:08:15 +0200 In-Reply-To: (Stefan Monnier's message of "Sun, 08 Apr 2012 22:20:50 -0400") Message-ID: <87ehrwdbhs.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11194 Cc: Cray Elliott , 11194@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Stefan Monnier writes: >>> For example, if you went to eshell and typed 'sudo rm -rf >>> /opt/folder' it would complain about permissions being needed and >>> wouldn't query for password. Bug doesn't exist with relative paths. >>> Bug does exist with wildcards. >> If you want to use absolute paths in eshell, you should apply >> rm -rf /sudo::/opt/folder > > 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': ~ $ which sudo eshell/sudo is a compiled Lisp function in `em-unix.el' In order to call the native sudo, one must apply *sudo rm -rf /opt/folder See also (info "(eshell)Built-ins") > Stefan Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 09 21:59:06 2012 Received: (at 11194) by debbugs.gnu.org; 10 Apr 2012 01:59:06 +0000 Received: from localhost ([127.0.0.1]:47600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHQMM-0001Aq-H5 for submit@debbugs.gnu.org; Mon, 09 Apr 2012 21:59:06 -0400 Received: from ironport-out.teksavvy.com ([206.248.143.162]:12991) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHQML-0001Ak-Da for 11194@debbugs.gnu.org; Mon, 09 Apr 2012 21:59:05 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjEKACxOgk9sr+pC/2dsb2JhbABDtheCDAOBDIEIggkBAQQBViMQCzQSFBgNJIgcBbYyi2GEeQSkRYFdgwM X-IronPort-AV: E=Sophos;i="4.75,391,1330923600"; d="scan'208";a="173015145" 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; 09 Apr 2012 21:58:06 -0400 Received: by pastel.home (Postfix, from userid 20848) id E3F6E589AF; Mon, 9 Apr 2012 21:58:05 -0400 (EDT) From: Stefan Monnier To: Michael Albinus Subject: Re: bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system Message-ID: References: <877gxrbz1p.fsf@rbdash.i-did-not-set--mail-host-address--so-tickle-me> <87obr2cwtu.fsf@gmx.de> <87ehrwdbhs.fsf@gmx.de> Date: Mon, 09 Apr 2012 21:58:05 -0400 In-Reply-To: <87ehrwdbhs.fsf@gmx.de> (Michael Albinus's message of "Mon, 09 Apr 2012 20:08:15 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11194 Cc: Cray Elliott , 11194@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >> 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. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 10 03:08:32 2012 Received: (at 11194) by debbugs.gnu.org; 10 Apr 2012 07:08:32 +0000 Received: from localhost ([127.0.0.1]:47970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHVBm-0003wt-Ll for submit@debbugs.gnu.org; Tue, 10 Apr 2012 03:08:31 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:51922) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SHVBh-0003wg-AI for 11194@debbugs.gnu.org; Tue, 10 Apr 2012 03:08:26 -0400 Received: (qmail invoked by alias); 10 Apr 2012 07:07:23 -0000 Received: from p57BB97DD.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.151.221] by mail.gmx.net (mp027) with SMTP; 10 Apr 2012 09:07:23 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/tZcJHRmbttYoIyj6ahNq0bHUPqf/MzgNvtJV733 jws4igFp3NysGA From: Michael Albinus To: Stefan Monnier Subject: Re: bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system References: <877gxrbz1p.fsf@rbdash.i-did-not-set--mail-host-address--so-tickle-me> <87obr2cwtu.fsf@gmx.de> <87ehrwdbhs.fsf@gmx.de> Date: Tue, 10 Apr 2012 09:07:21 +0200 In-Reply-To: (Stefan Monnier's message of "Mon, 09 Apr 2012 21:58:05 -0400") Message-ID: <87r4vwqd3q.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11194 Cc: Cray Elliott , 11194@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Stefan Monnier writes: >>> 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 new feature in eshell. Do we want it? Do we know, that there are no unwanted side effects, if (local) "/foo/bar" is handled as (remote) "/su(do)?::/foo/bar" for *all* built-ins, when being called from `eshell/su(do)?'? > Stefan Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 10 09:02:17 2012 Received: (at 11194) by debbugs.gnu.org; 10 Apr 2012 13:02:17 +0000 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 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" 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 Received: by pastel.home (Postfix, from userid 20848) id 6E15C589AF; Tue, 10 Apr 2012 09:01:11 -0400 (EDT) From: Stefan Monnier To: Michael Albinus Subject: Re: bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system 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> Date: Tue, 10 Apr 2012 09:01:11 -0400 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) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11194 Cc: Cray Elliott , 11194@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >>>> 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 10 10:01:29 2012 Received: (at 11194) by debbugs.gnu.org; 10 Apr 2012 14:01:29 +0000 Received: from localhost ([127.0.0.1]:48940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHbdQ-00012C-7A for submit@debbugs.gnu.org; Tue, 10 Apr 2012 10:01:28 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:35495) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SHbdM-000121-GW for 11194@debbugs.gnu.org; Tue, 10 Apr 2012 10:01:26 -0400 Received: (qmail invoked by alias); 10 Apr 2012 14:00:21 -0000 Received: from p57BB97DD.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.151.221] by mail.gmx.net (mp072) with SMTP; 10 Apr 2012 16:00:21 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/oO+sFGC3oP6GLCkQIcI2Su6hILiLWkx2vGEI1CD STVto2OmzhyMVa From: Michael Albinus To: Stefan Monnier Subject: Re: bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system 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> Date: Tue, 10 Apr 2012 16:00:17 +0200 In-Reply-To: (Stefan Monnier's message of "Tue, 10 Apr 2012 09:01:11 -0400") Message-ID: <87zkajsn4e.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11194 Cc: Cray Elliott , 11194@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Stefan Monnier writes: > Sounds like a bug in eshell/sudo: it should not use builtins. Don't know. Sometimes, it makes sense for builtins running under sudo. Like `.', an alias for `eshell/.'. It sources a file, and executes eshell commands from this file. sudo . .eshell/history sounds like a useful command. Just as example, other examples could be there. I still believe, we shall emphasize in the manual, that file names are interpreted like in `find-file'. This is the spirit of `eshell'. Otherwise, one shall use plain `shell'. > Stefan Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 10 10:56:54 2012 Received: (at 11194) by debbugs.gnu.org; 10 Apr 2012 14:56:54 +0000 Received: from localhost ([127.0.0.1]:48996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHcV0-0002Ok-VR for submit@debbugs.gnu.org; Tue, 10 Apr 2012 10:56:52 -0400 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:44208) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHcUy-0002Oa-0f for 11194@debbugs.gnu.org; Tue, 10 Apr 2012 10:56:48 -0400 Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q3AEti4a017782; Tue, 10 Apr 2012 10:55:44 -0400 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 65940B425E; Tue, 10 Apr 2012 10:55:44 -0400 (EDT) From: Stefan Monnier To: Michael Albinus Subject: Re: bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system 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> <87zkajsn4e.fsf@gmx.de> Date: Tue, 10 Apr 2012 10:55:44 -0400 In-Reply-To: <87zkajsn4e.fsf@gmx.de> (Michael Albinus's message of "Tue, 10 Apr 2012 16:00:17 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4188=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4188> : streams <745692> : uri <1097835> X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: 11194 Cc: Cray Elliott , 11194@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.5 (---) >> Sounds like a bug in eshell/sudo: it should not use builtins. > Don't know. Sometimes, it makes sense for builtins running under sudo. > Like `.', an alias for `eshell/.'. It sources a file, and executes > eshell commands from this file. > sudo . .eshell/history "sudo . .eshell/history" means "execute the commands in .eshell/history as user `root'". I.e. it's very different from ". /sudo::.eshell/history" which runs those command as the current user. I don't think eshell/sudo knows how to do it right. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 10 11:15:37 2012 Received: (at 11194) by debbugs.gnu.org; 10 Apr 2012 15:15:37 +0000 Received: from localhost ([127.0.0.1]:49000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHcn9-0002qV-Ej for submit@debbugs.gnu.org; Tue, 10 Apr 2012 11:15:37 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:59654) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SHcn7-0002qN-79 for 11194@debbugs.gnu.org; Tue, 10 Apr 2012 11:15:34 -0400 Received: (qmail invoked by alias); 10 Apr 2012 15:14:30 -0000 Received: from p57BB97DD.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.151.221] by mail.gmx.net (mp071) with SMTP; 10 Apr 2012 17:14:30 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18UrXp7rbIUSYwMuk+665J5oTKulRtp0owz1Xemk/ N9zea755Y0XOry From: Michael Albinus To: Stefan Monnier Subject: Re: bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system 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> Date: Tue, 10 Apr 2012 17:14:28 +0200 In-Reply-To: (Stefan Monnier's message of "Tue, 10 Apr 2012 10:55:44 -0400") Message-ID: <87r4vvsjor.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11194 Cc: Cray Elliott , 11194@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Stefan Monnier writes: > "sudo . .eshell/history" means "execute the commands in .eshell/history > as user `root'". I.e. it's very different from > ". /sudo::.eshell/history" which runs those command as the current user. I haven't said there's only one way to do it :-) I mean we should think about, before we disable builtins in sudo. I'm still not convinced it is a bug. In eshell, one must understand how file names are handled. And, btw, people who don't like the current behaviour are free to add alias sudo *sudo $* to ~/.eshell/alias. > Stefan Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 10 12:24:16 2012 Received: (at 11194) by debbugs.gnu.org; 10 Apr 2012 16:24:16 +0000 Received: from localhost ([127.0.0.1]:49018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHdrc-0004TX-8X for submit@debbugs.gnu.org; Tue, 10 Apr 2012 12:24:16 -0400 Received: from chene.dit.umontreal.ca ([132.204.246.20]:51521) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHdrZ-0004TN-7i for 11194@debbugs.gnu.org; Tue, 10 Apr 2012 12:24:14 -0400 Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q3AGN9SN007457; Tue, 10 Apr 2012 12:23:09 -0400 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id E8C95B40D6; Tue, 10 Apr 2012 12:23:08 -0400 (EDT) From: Stefan Monnier To: Michael Albinus Subject: Re: bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system 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> <87zkajsn4e.fsf@gmx.de> <87r4vvsjor.fsf@gmx.de> Date: Tue, 10 Apr 2012 12:23:08 -0400 In-Reply-To: <87r4vvsjor.fsf@gmx.de> (Michael Albinus's message of "Tue, 10 Apr 2012 17:14:28 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4188=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4188> : streams <745715> : uri <1097850> X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: 11194 Cc: Cray Elliott , 11194@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.5 (---) >> "sudo . .eshell/history" means "execute the commands in .eshell/history >> as user `root'". I.e. it's very different from >> ". /sudo::.eshell/history" which runs those command as the current user. > I haven't said there's only one way to do it :-) I mean we should > think about, before we disable builtins in sudo. I'm still not > convinced it is a bug. > In eshell, one must understand how file names are handled. I'd be happy to hear of arguments in favor of the current behavior of eshell/sudo w.r.t builtins. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 10 12:37:40 2012 Received: (at submit) by debbugs.gnu.org; 10 Apr 2012 16:37:40 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 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 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 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 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 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 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 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/ To: bug-gnu-emacs@gnu.org From: Thierry Volpiatto Subject: Re: 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 Lines: 29 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> Mime-Version: 1.0 Content-Type: text/plain 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-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 10 12:42:54 2012 Received: (at submit) by debbugs.gnu.org; 10 Apr 2012 16:42:54 +0000 Received: from localhost ([127.0.0.1]:49073 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHe9d-0004z9-CA for submit@debbugs.gnu.org; Tue, 10 Apr 2012 12:42:53 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40621) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHe9Z-0004z1-NP for submit@debbugs.gnu.org; Tue, 10 Apr 2012 12:42:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHe8U-0000BP-QC for submit@debbugs.gnu.org; Tue, 10 Apr 2012 12:41:47 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:43715) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHe8U-0000BJ-NS for submit@debbugs.gnu.org; Tue, 10 Apr 2012 12:41:42 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHe8S-00075I-RK for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 12:41:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHe8Q-0000Aj-Gn for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 12:41:40 -0400 Received: from plane.gmane.org ([80.91.229.3]:39268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHe8Q-0000AV-9n for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 12:41:38 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SHe8M-0001eU-P5 for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 18:41:34 +0200 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:41:34 +0200 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:41:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Thierry Volpiatto Subject: Re: bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system Date: Tue, 10 Apr 2012 18:41:21 +0200 Lines: 19 Message-ID: <87iph7zgi6.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> Mime-Version: 1.0 Content-Type: text/plain 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:xT/BXFLWiSauLFEeOnS0PKCbrWY= 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-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Stefan Monnier writes: >>> "sudo . .eshell/history" means "execute the commands in .eshell/history >>> as user `root'". I.e. it's very different from >>> ". /sudo::.eshell/history" which runs those command as the current user. >> I haven't said there's only one way to do it :-) I mean we should >> think about, before we disable builtins in sudo. I'm still not >> convinced it is a bug. >> In eshell, one must understand how file names are handled. > > I'd be happy to hear of arguments in favor of the current behavior of > eshell/sudo w.r.t builtins. It seem it doesn't ask for passwd at everytime (seem it read his timestamp in /var/lib/sudo//?). -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997 From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 10 12:59:06 2012 Received: (at submit) by debbugs.gnu.org; 10 Apr 2012 16:59:06 +0000 Received: from localhost ([127.0.0.1]:49107 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHePJ-0005Nt-VE for submit@debbugs.gnu.org; Tue, 10 Apr 2012 12:59:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51984) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHePI-0005Ng-2e for submit@debbugs.gnu.org; Tue, 10 Apr 2012 12:59:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHeOB-0004jA-SZ for submit@debbugs.gnu.org; Tue, 10 Apr 2012 12:58:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:50591) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHeOB-0004j5-Pw for submit@debbugs.gnu.org; Tue, 10 Apr 2012 12:57:55 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHeOA-0003yf-5i for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 12:57:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHeO3-0004hl-Qb for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 12:57:53 -0400 Received: from plane.gmane.org ([80.91.229.3]:32800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHeO3-0004he-JV for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 12:57:47 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SHeO0-0002NA-Od for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 18:57:44 +0200 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:57:44 +0200 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:57:44 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Thierry Volpiatto Subject: Re: bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system Date: Tue, 10 Apr 2012 18:57:31 +0200 Lines: 31 Message-ID: <87aa2jr0ck.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> <87mx6jzgr6.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain 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:u45kVuCeXfyL1rl3V/ciyY7xtlE= 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-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Thierry Volpiatto writes: > 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 > > (let ((default-directory (if (string= host "localhost") > default-directory > (format "/sudo:%s@%s:%s" user host dir)))) > > But maybe I missed something? And also it is using /bin/sh which is not aware of many system maintenance commands mostly used as root with sudo. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997 From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 10 13:09:04 2012 Received: (at submit) by debbugs.gnu.org; 10 Apr 2012 17:09:04 +0000 Received: from localhost ([127.0.0.1]:49128 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHeYy-0005dn-0J for submit@debbugs.gnu.org; Tue, 10 Apr 2012 13:09:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52086) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHeYv-0005dP-EM for submit@debbugs.gnu.org; Tue, 10 Apr 2012 13:09:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHeXo-0007YC-Sj for submit@debbugs.gnu.org; Tue, 10 Apr 2012 13:07:58 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:53716) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHeXo-0007XI-OK for submit@debbugs.gnu.org; Tue, 10 Apr 2012 13:07:52 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHeXj-0006rK-0U for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 13:07:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHeXf-0007UP-Tg for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 13:07:46 -0400 Received: from plane.gmane.org ([80.91.229.3]:51331) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHeXf-0007U9-Lw for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 13:07:43 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SHeXc-0007Yt-Ou for bug-gnu-emacs@gnu.org; Tue, 10 Apr 2012 19:07:40 +0200 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 19:07:40 +0200 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 19:07:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Thierry Volpiatto Subject: Re: bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system Date: Tue, 10 Apr 2012 19:07:30 +0200 Lines: 24 Message-ID: <87sjgbcy7h.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> <87iph7zgi6.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain 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:BzJZ4daF9Nlom0U3cvxLhNcl1yg= 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-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Thierry Volpiatto writes: > Stefan Monnier writes: > >>>> "sudo . .eshell/history" means "execute the commands in .eshell/history >>>> as user `root'". I.e. it's very different from >>>> ". /sudo::.eshell/history" which runs those command as the current user. >>> I haven't said there's only one way to do it :-) I mean we should >>> think about, before we disable builtins in sudo. I'm still not >>> convinced it is a bug. >>> In eshell, one must understand how file names are handled. >> >> I'd be happy to hear of arguments in favor of the current behavior of >> eshell/sudo w.r.t builtins. > It seem it doesn't ask for passwd at everytime > (seem it read his timestamp in /var/lib/sudo//?). No, it just doesn't use sudo at all! it is why no password is required. And command which need a passwd e.g cat /etc/passwd- end up with permission denied. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997 From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 10 14:01:49 2012 Received: (at 11194) by debbugs.gnu.org; 10 Apr 2012 18:01:49 +0000 Received: from localhost ([127.0.0.1]:49211 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHfNz-0007mc-4e for submit@debbugs.gnu.org; Tue, 10 Apr 2012 14:01:48 -0400 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:42415) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHfNw-0007mU-Ss for 11194@debbugs.gnu.org; Tue, 10 Apr 2012 14:01:45 -0400 Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q3AI0fCh015255; Tue, 10 Apr 2012 14:00:41 -0400 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id CA1A0B40D6; Tue, 10 Apr 2012 14:00:41 -0400 (EDT) From: Stefan Monnier To: Thierry Volpiatto Subject: Re: bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system 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> <87zkajsn4e.fsf@gmx.de> <87r4vvsjor.fsf@gmx.de> <87iph7zgi6.fsf@gmail.com> Date: Tue, 10 Apr 2012 14:00:41 -0400 In-Reply-To: <87iph7zgi6.fsf@gmail.com> (Thierry Volpiatto's message of "Tue, 10 Apr 2012 18:41:21 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4188=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4188> : streams <745736> : uri <1097867> X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: 11194 Cc: 11194@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.5 (---) >> I'd be happy to hear of arguments in favor of the current behavior of >> eshell/sudo w.r.t builtins. > It seem it doesn't ask for passwd at everytime > (seem it read his timestamp in /var/lib/sudo//?). That rather sounds like a problem of the alternative code that needs fixing. Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 20 09:36:31 2012 Received: (at 11194) by debbugs.gnu.org; 20 Apr 2012 13:36:32 +0000 Received: from localhost ([127.0.0.1]:43823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SLE0l-0002LM-OP for submit@debbugs.gnu.org; Fri, 20 Apr 2012 09:36:31 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:55162) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SLE0j-0002L6-7t for 11194@debbugs.gnu.org; Fri, 20 Apr 2012 09:36:30 -0400 Received: (qmail invoked by alias); 20 Apr 2012 13:35:57 -0000 Received: from p57BB97C9.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.151.201] by mail.gmx.net (mp071) with SMTP; 20 Apr 2012 15:35:57 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+vZ9pjAD2vG6goK6WZnEBwx25Y9uQfn9/rjT3wU3 E6LQnC+c+/fnJv From: Michael Albinus To: Stefan Monnier Subject: Re: bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system 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> Date: Fri, 20 Apr 2012 15:35:50 +0200 In-Reply-To: (Stefan Monnier's message of "Tue, 10 Apr 2012 12:23:08 -0400") Message-ID: <87ehriseyx.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11194 Cc: Cray Elliott , 11194@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Stefan Monnier writes: [Sorry for the delay, I was busy in RL last days] > I'd be happy to hear of arguments in favor of the current behavior of > eshell/sudo w.r.t builtins. I've checked the implementation of eshell/sudo: It simply let-binds default-directory to "/sudo:user@host:dir", and let the command like rm run. That's why the built-in version of rm is in place. Another implementation of sudo would not be in the spirit of eshell, I think. > Stefan Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 20 09:39:13 2012 Received: (at 11194) by debbugs.gnu.org; 20 Apr 2012 13:39:13 +0000 Received: from localhost ([127.0.0.1]:43830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SLE3L-0002PI-7u for submit@debbugs.gnu.org; Fri, 20 Apr 2012 09:39:13 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:38664) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SLE3H-0002Ow-TM for 11194@debbugs.gnu.org; Fri, 20 Apr 2012 09:39:09 -0400 Received: (qmail invoked by alias); 20 Apr 2012 13:38:36 -0000 Received: from p57BB97C9.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.151.201] by mail.gmx.net (mp071) with SMTP; 20 Apr 2012 15:38:36 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/HXYYGa3HH6c4IAzL3tcB6ko5PxmWWGORqYpMbpO 3O4n+nGSX9gk7M From: Michael Albinus To: Thierry Volpiatto Subject: Re: bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system 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> <87mx6jzgr6.fsf@gmail.com> <87aa2jr0ck.fsf@gmail.com> Date: Fri, 20 Apr 2012 15:38:34 +0200 In-Reply-To: <87aa2jr0ck.fsf@gmail.com> (Thierry Volpiatto's message of "Tue, 10 Apr 2012 18:57:31 +0200") Message-ID: <877gxaseud.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11194 Cc: 11194@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Thierry Volpiatto writes: >> Hi Michael, Hi Thierry, >> 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 >> >> (let ((default-directory (if (string= host "localhost") >> default-directory >> (format "/sudo:%s@%s:%s" user host dir)))) >> >> But maybe I missed something? > And also it is using /bin/sh which is not aware of many system > maintenance commands mostly used as root with sudo. Does there exist a corresponding bug report? I'm short in time, but maybe I could have a look on it later. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 20 16:59:36 2012 Received: (at 11194) by debbugs.gnu.org; 20 Apr 2012 20:59:36 +0000 Received: from localhost ([127.0.0.1]:44727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SLKvX-0006OL-Tr for submit@debbugs.gnu.org; Fri, 20 Apr 2012 16:59:36 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:40894) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SLKvV-0006O9-6A for 11194@debbugs.gnu.org; Fri, 20 Apr 2012 16:59:34 -0400 Received: by wibhm17 with SMTP id hm17so992965wib.15 for <11194@debbugs.gnu.org>; Fri, 20 Apr 2012 13:59:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=Lb5U6QyWO05zS3WBr6JPiih+3QBSWwM3JR2LZv2EMfM=; b=0k+CHD5pucg9KYVfKWHfHISpkOLds9nPbEprsOY76L79KQoO/S9LXUl43t+7rQ3QP0 /OWUEacWCEUE/N8JchjpdXkhZwAhTQcQjdDqFuuRAC8YKqAI4jzU3kxGHM2i7r+cmPx9 e+4QpFZYPBM+yplgQMuAEgvW5MXrFL1x4C7Ayo0KI5dMb9JXDD8sy/GCClqN76g5KByJ 8Wkwo3hniyywmDdgqkuUmlJOMkmYPb3dZab+R2KWptA/sHzTYZiBfkbRWVSgrtGGpQEU My7vptJ/CJOXZw5omA+o4jCJ8gaNWkJesPVsR5zTqWRhvZQEN63YrQMFKbWIpuwuewq4 UjQw== Received: by 10.216.137.149 with SMTP id y21mr4755012wei.110.1334955540794; Fri, 20 Apr 2012 13:59:00 -0700 (PDT) Received: from thierry-MM061 (lbe83-2-78-243-104-167.fbx.proxad.net. [78.243.104.167]) by mx.google.com with ESMTPS id ff2sm326308wib.9.2012.04.20.13.58.58 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 20 Apr 2012 13:58:59 -0700 (PDT) From: Thierry Volpiatto To: Michael Albinus Subject: Re: bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system 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> <87mx6jzgr6.fsf@gmail.com> <87aa2jr0ck.fsf@gmail.com> <877gxaseud.fsf@gmx.de> Date: Fri, 20 Apr 2012 22:58:52 +0200 In-Reply-To: <877gxaseud.fsf@gmx.de> (Michael Albinus's message of "Fri, 20 Apr 2012 15:38:34 +0200") Message-ID: <87wr5ai0hf.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 11194 Cc: 11194@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Hi Michael, Michael Albinus writes: > Thierry Volpiatto writes: > >>> Hi Michael, > > Hi Thierry, > >>> 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 This happen with a bad configuration of `tramp-default-proxies-alist': --8<---------------cut here---------------start------------->8--- (add-to-list 'tramp-default-proxies-alist '(nil "\\`root\\'" "/ssh:%h:")) --8<---------------cut here---------------end--------------->8--- With this with host set to nil, (directory-file-p "/sudo:localhost:") C-x C-f "/sudo:localhost:" eshell/sudo fail with error above. The host should be set to the real name of the host we want to connect on as root: --8<---------------cut here---------------start------------->8--- (add-to-list 'tramp-default-proxies-alist '("\\`realhostname\\'" "\\`root\\'" "/ssh:%h:")) --8<---------------cut here---------------end--------------->8--- >> And also it is using /bin/sh which is not aware of many system >> maintenance commands mostly used as root with sudo. > > Does there exist a corresponding bug report? I'm short in time, but > maybe I could have a look on it later. No but you can reproduce easily with: $ eshell/sudo fdisk -l =>/bin/sh: fdisk: not found -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997 From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 20 22:03:40 2012 Received: (at 11194) by debbugs.gnu.org; 21 Apr 2012 02:03:40 +0000 Received: from localhost ([127.0.0.1]:44871 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SLPfn-00056V-J0 for submit@debbugs.gnu.org; Fri, 20 Apr 2012 22:03:40 -0400 Received: from ironport-out.teksavvy.com ([206.248.143.162]:54421) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SLPfl-00056I-VC for 11194@debbugs.gnu.org; Fri, 20 Apr 2012 22:03:38 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjEKACxOgk/O+K5t/2dsb2JhbABDtheCDAOBDIEIggkBAQQBViMQCzQSFBgNJIgcBbYyi2GEeQSkRYFdgwM X-IronPort-AV: E=Sophos;i="4.75,391,1330923600"; d="scan'208";a="175682667" Received: from 206-248-174-109.dsl.teksavvy.com (HELO pastel.home) ([206.248.174.109]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 20 Apr 2012 22:03:04 -0400 Received: by pastel.home (Postfix, from userid 20848) id CA2E058E55; Fri, 20 Apr 2012 22:03:03 -0400 (EDT) From: Stefan Monnier To: Michael Albinus Subject: Re: bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system 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> <87zkajsn4e.fsf@gmx.de> <87r4vvsjor.fsf@gmx.de> <87ehriseyx.fsf@gmx.de> Date: Fri, 20 Apr 2012 22:03:03 -0400 In-Reply-To: <87ehriseyx.fsf@gmx.de> (Michael Albinus's message of "Fri, 20 Apr 2012 15:35:50 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11194 Cc: Cray Elliott , 11194@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >> I'd be happy to hear of arguments in favor of the current behavior of >> eshell/sudo w.r.t builtins. > I've checked the implementation of eshell/sudo: It simply let-binds > default-directory to "/sudo:user@host:dir", and let the command like rm > run. That's why the built-in version of rm is in place. > Another implementation of sudo would not be in the spirit of eshell, I > think. Spirit or not, the resulting behavior for `sudo' makes no sense and should be fixed, Stefan From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 22 13:48:39 2012 Received: (at 11194) by debbugs.gnu.org; 22 Apr 2012 17:48:39 +0000 Received: from localhost ([127.0.0.1]:47119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SM0tq-0006Ux-Nd for submit@debbugs.gnu.org; Sun, 22 Apr 2012 13:48:38 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:43178) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SM0tn-0006Uh-58 for 11194@debbugs.gnu.org; Sun, 22 Apr 2012 13:48:36 -0400 Received: (qmail invoked by alias); 22 Apr 2012 17:47:51 -0000 Received: from p57BB8E7C.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.142.124] by mail.gmx.net (mp004) with SMTP; 22 Apr 2012 19:47:51 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+ns45NEpKnoyO740AaaaPZdzIuvnomOKlz3Fceo3 xwdozDM/5bjpLr From: Michael Albinus To: Stefan Monnier Subject: Re: bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system 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> Date: Sun, 22 Apr 2012 19:47:47 +0200 In-Reply-To: (Stefan Monnier's message of "Fri, 20 Apr 2012 22:03:03 -0400") Message-ID: <87k417sloc.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11194 Cc: Cray Elliott , 11194@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Stefan Monnier writes: >>> I'd be happy to hear of arguments in favor of the current behavior of >>> eshell/sudo w.r.t builtins. >> I've checked the implementation of eshell/sudo: It simply let-binds >> default-directory to "/sudo:user@host:dir", and let the command like rm >> run. That's why the built-in version of rm is in place. >> Another implementation of sudo would not be in the spirit of eshell, I >> think. > > Spirit or not, the resulting behavior for `sudo' makes no sense and > should be fixed, Last attempt to convince you: The eshell manual gives as example ~ $ cd /ssh:otherhost:/etc /ssh:user@otherhost:/etc $ sudo find-file shadow If you disable built-in commands inside sudo, you would disable all other Lisp functions as well. Do we want this? > Stefan Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 23 21:53:30 2012 Received: (at 11194) by debbugs.gnu.org; 24 Apr 2012 01:53:30 +0000 Received: from localhost ([127.0.0.1]:49648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SMUwb-0003M6-DW for submit@debbugs.gnu.org; Mon, 23 Apr 2012 21:53:30 -0400 Received: from ironport-out.teksavvy.com ([206.248.143.162]:29512) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SMUwZ-0003Lu-HH for 11194@debbugs.gnu.org; Mon, 23 Apr 2012 21:53:28 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjEKACxOgk/O+Jnc/2dsb2JhbABDtheCDAOBDIEIggkBAQQBViMQCzQSFBgNJC6HbgW2MothhHkEpEWBXYMD X-IronPort-AV: E=Sophos;i="4.75,391,1330923600"; d="scan'208";a="176388933" Received: from 206-248-153-220.dsl.teksavvy.com (HELO pastel.home) ([206.248.153.220]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 23 Apr 2012 21:52:37 -0400 Received: by pastel.home (Postfix, from userid 20848) id 0EB5458EB0; Mon, 23 Apr 2012 21:52:37 -0400 (EDT) From: Stefan Monnier To: Michael Albinus Subject: Re: bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system 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> <87zkajsn4e.fsf@gmx.de> <87r4vvsjor.fsf@gmx.de> <87ehriseyx.fsf@gmx.de> <87k417sloc.fsf@gmx.de> Date: Mon, 23 Apr 2012 21:52:36 -0400 In-Reply-To: <87k417sloc.fsf@gmx.de> (Michael Albinus's message of "Sun, 22 Apr 2012 19:47:47 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11194 Cc: Cray Elliott , 11194@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >> Spirit or not, the resulting behavior for `sudo' makes no sense and >> should be fixed, > Last attempt to convince you: The eshell manual gives as example > ~ $ cd /ssh:otherhost:/etc > /ssh:user@otherhost:/etc $ sudo find-file shadow > If you disable built-in commands inside sudo, you would disable all > other Lisp functions as well. Do we want this? 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. - the combination of the two leads to "sudo rm" doing something less slightly different. 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. Stefan From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 25 05:33:22 2012 Received: (at 11194) by debbugs.gnu.org; 25 Apr 2012 09:33:22 +0000 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 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 Received: (qmail invoked by alias); 25 Apr 2012 09:32:19 -0000 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 From: Michael Albinus To: Stefan Monnier Subject: Re: bug#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system 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> Date: Wed, 25 Apr 2012 11:32:17 +0200 In-Reply-To: (Stefan Monnier's message of "Mon, 23 Apr 2012 21:52:36 -0400") Message-ID: <87fwbsupge.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11194 Cc: Cray Elliott , 11194@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) 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. From unknown Fri Aug 15 16:21:43 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 23 May 2012 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator