all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jim Porter <jporterbugs@gmail.com>
To: Stefan Kangas <stefankangas@gmail.com>,
	Alfonso Sanchez-Beato <alfonsosanchezbeato@yahoo.es>
Cc: 68074@debbugs.gnu.org
Subject: bug#68074: eshell sudo/doas does not work for aliases
Date: Thu, 11 Jan 2024 13:15:21 -0800	[thread overview]
Message-ID: <c41da27c-fed9-445a-4b81-bcf2f50c602b@gmail.com> (raw)
In-Reply-To: <CADwFkm=-mT9C9PLCmxE66f9_Ca8fc2DykyVg0r1qX_O-8qUd1A@mail.gmail.com>

On 1/11/2024 1:00 PM, Stefan Kangas wrote:
> Alfonso Sanchez-Beato <alfonsosanchezbeato@yahoo.es> writes:
> 
>> sudo/doas does not give the expected permissions when using an eshell alias:
[snip]
>> I have attached a patch with a possible fix.
> 
> Jim, could you take a look at this patch please?

I've been meaning to look at this in detail, but haven't had time. My 
gut feeling though is that we shouldn't have a special case in this code 
for when the alias starts with "cd". I'll have to do some testing with 
aliases and sudo in order to have a more-helpful answer though.

At a guess, I think a better place to add code for this is likely in 
em-tramp.el.





  reply	other threads:[~2024-01-11 21:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <31356544.8861481.1703711546895.ref@mail.yahoo.com>
2023-12-27 21:12 ` bug#68074: eshell sudo/doas does not work for aliases Alfonso Sanchez-Beato via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-11 21:00   ` Stefan Kangas
2024-01-11 21:15     ` Jim Porter [this message]
2024-01-25  2:43       ` Jim Porter
2024-01-26 23:53         ` Alfonso Sanchez-Beato via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-27  0:27           ` Jim Porter
2024-01-27  1:19             ` Jim Porter
2024-01-27  8:46               ` Alfonso Sanchez-Beato via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-27 20:24                 ` Jim Porter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c41da27c-fed9-445a-4b81-bcf2f50c602b@gmail.com \
    --to=jporterbugs@gmail.com \
    --cc=68074@debbugs.gnu.org \
    --cc=alfonsosanchezbeato@yahoo.es \
    --cc=stefankangas@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.