GNU bug report logs -
#72117
Command doesn't execute correctly in eshell
Previous Next
Full log
Message #11 received at 72117 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 7/14/2024 6:01 PM, Jim Porter wrote:
> On 7/14/2024 12:33 PM, the_wurfkreuz via Bug reports for GNU Emacs, the
> Swiss army knife of text editors wrote:
>> First of all, i can't execute 'sudo lsof | grep delete | head -10' in
>> eshell.
>
> 'sudo -S' should help here: it'll output the sudo password prompt on
> stderr so that Eshell can see it and handle password entry. (You should
> be able to enter your password anyway, but without the -S it would just
> be echoed to the screen.)
>
> But that's not the most interesting part. I can execute the
>> command with 'eshell/sudo'. But after the command execution emacs will
>> take the whole CPU processing time if i have
>> '(global-display-line-numbers-mode 1)'
>> option enabled.
>
> I can't reproduce this particular issue, but I can reproduce *an* issue.
> It seems to be due to "head -10" exiting early (as it should), which
> results in a broken pipe. However, Eshell's broken pipe handling wasn't
> properly cleaning up the process ("grep" in this example).
Here's a better patch, based on the recent improvements to Tramp in
bug#72013.
[0001-Handle-broken-pipes-in-a-better-way-in-Eshell.patch (text/plain, attachment)]
This bug report was last modified 356 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.