GNU bug report logs - #21972
24.5; Running 'bash -i -c' via shell-command hangs on FreeBSD

Previous Next

Package: emacs;

Reported by: Davor Cubranic <davor.cubranic <at> alumni.cs.ubc.ca>

Date: Sat, 21 Nov 2015 16:33:04 UTC

Severity: normal

Found in version 24.5

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Kangas <stefan <at> marxist.se>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Davor Cubranic <davor.cubranic <at> alumni.cs.ubc.ca>, 21972 <at> debbugs.gnu.org
Subject: bug#21972: 24.5; Running 'bash -i -c' via shell-command hangs on FreeBSD
Date: Mon, 14 Oct 2019 22:50:22 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> > If bash hangs, shouldn't that be reported as a bug in bash instead?
>
> It's possible that your Bash is newer, and this bug was fixed since
> then.

True.

> In general, it sounds like Bash tries to read from its stdin, and in
> call-process that is... what?  By contrast, by default we communicate
> with async subprocess via PTYs (on Posix hosts), which is what Bash
> expects in an interactive session.
>
> IOW, I cannot understand why would someone call "bash -i" in a
> non-interactive command.

Indeed.

> > Or should Emacs somehow do better with a hanging process?
>
> Like what?

No idea, that's why I'm asking.  But if you don't know either, then I
guess that means that there is nothing to do here; and this is not a
bug in Emacs.

Best regards,
Stefan Kangas




This bug report was last modified 5 years and 222 days ago.

Previous Next


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