From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#28320: 25.2; Eshell/TRAMP's sudo does not work with aliases Date: Sat, 13 Feb 2021 13:00:53 +0100 Message-ID: <874kigqiru.fsf@gnus.org> References: <874lsm5oxt.fsf@gmail.com> <87v9b6iwp1.fsf@gnus.org> <8735y1shlv.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7918"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 28320@debbugs.gnu.org, Pierre Neidhardt To: Pierre Neidhardt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 13 13:02:42 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 1lAtdJ-0001wJ-Mp for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Feb 2021 13:02:41 +0100 Original-Received: from localhost ([::1]:48630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAtdI-0002AT-GE for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Feb 2021 07:02:40 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAtcg-00028b-Lm for bug-gnu-emacs@gnu.org; Sat, 13 Feb 2021 07:02:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50313) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lAtcg-0004li-1v for bug-gnu-emacs@gnu.org; Sat, 13 Feb 2021 07:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lAtcf-0002L2-VM for bug-gnu-emacs@gnu.org; Sat, 13 Feb 2021 07:02:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Feb 2021 12:02:01 +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.16132176678900 (code B ref 28320); Sat, 13 Feb 2021 12:02:01 +0000 Original-Received: (at 28320) by debbugs.gnu.org; 13 Feb 2021 12:01:07 +0000 Original-Received: from localhost ([127.0.0.1]:33623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAtbn-0002JU-5m for submit@debbugs.gnu.org; Sat, 13 Feb 2021 07:01:07 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:48136) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAtbl-0002Il-Cj for 28320@debbugs.gnu.org; Sat, 13 Feb 2021 07:01:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=cXonruAhl83uN8EneQ+7V4LgvFjGLVX3bolHvOwuEVI=; b=Myispb78nWwwXLGcplaxc60Wyo 52aInIQAPivVSGlMlg9cHlXdy995KRNAtw1NSdnJIjX3IR3luSXPb87160hWY4R2W7Sjrxw12PYFn 3e5ziyqgC9cOf8EnUqacZzhY6Xjs0SX2Rt+gYWKw0alXEW/+w50/5LJ0IvkLMu0i5WVc=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lAtbb-00048r-4B; Sat, 13 Feb 2021 13:00:59 +0100 X-Now-Playing: Orbital's _Blue Album_: "Tunnel Vision" In-Reply-To: <8735y1shlv.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Fri, 12 Feb 2021 11:30:52 +0100") 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:199916 Archived-At: Pierre Neidhardt writes: > 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). In Emacs 28, they do work the same: ~/src/emacs/trunk $ alias c 'cp $*' ~/src/emacs/trunk $ sudo c foo /etc/bar [sudo] password for larsi: sudo: c: command not found ~/src/emacs/trunk $ *sudo c foo /etc/bar [sudo] password for larsi: sudo: c: command not found So that's consistent, and probably the correct way to behave. So I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no