GNU bug report logs - #68074
eshell sudo/doas does not work for aliases

Previous Next

Package: emacs;

Reported by: Alfonso Sanchez-Beato <alfonsosanchezbeato <at> yahoo.es>

Date: Thu, 28 Dec 2023 04:14:02 UTC

Severity: normal

Tags: patch

Done: Jim Porter <jporterbugs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #28 received at 68074 <at> debbugs.gnu.org (full text, mbox):

From: Alfonso Sanchez-Beato <alfonsosanchezbeato <at> yahoo.es>
To: Stefan Kangas <stefankangas <at> gmail.com>, Jim Porter <jporterbugs <at> gmail.com>
Cc: "68074 <at> debbugs.gnu.org" <68074 <at> debbugs.gnu.org>
Subject: Re: bug#68074: eshell sudo/doas does not work for aliases
Date: Sat, 27 Jan 2024 08:46:10 +0000 (UTC)
 En sábado, 27 de enero de 2024, 01:19:32 GMT, Jim Porter <jporterbugs <at> gmail.com> escribió: 


On 1/26/2024 4:27 PM, Jim Porter wrote:

>> On 1/26/2024 3:53 PM, Alfonso Sanchez-Beato via Bug reports for GNU 
>> Emacs, the Swiss army knife of text editors wrote:
>>> Unfortunately that does not seem to be the case, I see an error saying 
>>> "Invalid function" after applying on top of current master:
>> 
>> Oops, I messed up the quoting. How about this?


> ... actually, this is a more-complete patch. I'm not 100% sure about 
> this part though:
>
>  ',(car args)
>
> That (usually) creates something like (quote "command"), but it's safer 
> than not quoting (the CAR of 'args' can be anything, really...)

This last patch works nicely, thanks a lot! It works also in cases where my patch was not, like:

$ eshell/sudo VAR=val <alias> ...




This bug report was last modified 1 year and 115 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.