From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pierre Neidhardt Newsgroups: gmane.emacs.bugs Subject: bug#28320: 25.2; Eshell/TRAMP's sudo does not work with aliases Date: Fri, 12 Feb 2021 11:30:52 +0100 Message-ID: <8735y1shlv.fsf@ambrevar.xyz> References: <874lsm5oxt.fsf@gmail.com> <87v9b6iwp1.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23331"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 28320@debbugs.gnu.org To: Lars Ingebrigtsen , Pierre Neidhardt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 12 11:32:27 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lAVkR-0005ys-6b for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Feb 2021 11:32:27 +0100 Original-Received: from localhost ([::1]:48834 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAVkQ-0004bL-9o for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Feb 2021 05:32:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAVk2-0004aK-R6 for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2021 05:32:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48440) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lAVk2-0001Uw-Ii for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2021 05:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lAVk2-0002eZ-Ei for bug-gnu-emacs@gnu.org; Fri, 12 Feb 2021 05:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Pierre Neidhardt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Feb 2021 10:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28320 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 28320-submit@debbugs.gnu.org id=B28320.161312586210117 (code B ref 28320); Fri, 12 Feb 2021 10:32:02 +0000 Original-Received: (at 28320) by debbugs.gnu.org; 12 Feb 2021 10:31:02 +0000 Original-Received: from localhost ([127.0.0.1]:59983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAVj4-0002d5-Hx for submit@debbugs.gnu.org; Fri, 12 Feb 2021 05:31:02 -0500 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:52651) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAVj2-0002cb-IG for 28320@debbugs.gnu.org; Fri, 12 Feb 2021 05:31:01 -0500 X-Originating-IP: 90.35.57.41 Original-Received: from mimimi (lfbn-orl-1-338-41.w90-35.abo.wanadoo.fr [90.35.57.41]) (Authenticated sender: mail@ambrevar.xyz) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 67A702000D; Fri, 12 Feb 2021 10:30:52 +0000 (UTC) In-Reply-To: <87v9b6iwp1.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:199853 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Lars Ingebrigtsen writes: > Is this working as designed, or is eshell supposed to expand the alias > before calling sudo? I don't remember what I had in mind when I initially posted the issue, but I suppose that I reported it because I noticed an inconsistency between "sudo" and "*sudo". That said, Bash does not expand aliases before sudo. So maybe the right thing to do is to have "*sudo" behave the same way as well, to be consistent with what users may be familiar with (Bash). Cheers! =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFGBAEBCAAwFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAmAmWNwSHG1haWxAYW1i cmV2YXIueHl6AAoJEJvc9Jeku8x/gYYIAIR0ZcD58zWYu1+IXiSRmbAeRgsXPMyg 7iHVj70Q4Od7gePBavPDG1/iSEHaE2co7rNEmzn5rMaa2e5np8WHhaVmgyLF2ga8 bdH5uVeROIgPaS5dizFrVJKRtaE2qL8clWYQMVGv2NRjfVAuCsXA2Dk6kObwm8jY J9iFU5Epe1N+EVwAOvrbpUYtTpkg32eihYopCuEGw9x8Pu1qT0hyq1x8RSViORpp 8Oay+SJ4Yt6KhaLToi8NOLQqgOIMTDo3zJmtjccL4QVP2w9AXwgsVDZQmYRpQ4yB asXLKpLcKXRsir2y8BWIXW+c3dBgid9By9Nd6l4kZgrru83YeoLWju8= =+3QF -----END PGP SIGNATURE----- --=-=-=--