From: Stefan Kangas <stefan@marxist.se>
To: Davor Cubranic <davor.cubranic@alumni.cs.ubc.ca>
Cc: 21972@debbugs.gnu.org
Subject: bug#21972: 24.5; Running 'bash -i -c' via shell-command hangs on FreeBSD
Date: Mon, 14 Oct 2019 21:55:22 +0200 [thread overview]
Message-ID: <CADwFkmmd7DNZd-Sne81TGqvYwmNvjhXhVAfF_h8gUppwXyv4mg@mail.gmail.com> (raw)
In-Reply-To: <86twof1ljp.fsf@telus.net>
Davor Cubranic <davor.cubranic@alumni.cs.ubc.ca> writes:
> On FreeBSD, running:
>
> M-x shell-command
> /usr/local/bin/bash -i -c "echo hello"
On GNU/Linux, the above gives me:
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
hello
> hangs until you press C-g (twice). I can see the bash process running at
> 100% via `top` until C-g kills it.
>
> Adding `--norc --noprofile` to the command still hangs, so it's not
> anything about the shell initialization files. The `-i` option is the
> key: without it, everything works fine.
>
> Running the same command via `async-shell-command` does not hang: Bash
> outputs "hello" in the "*Async Shell Command*" buffer and exits.
>
> Both Emacs and Bash are standard FreeBSD 10 binary packages installed
> via `pkg`. (emacs24-24.5_1,3 and bash-4.3.42, respectively).
If bash hangs, shouldn't that be reported as a bug in bash instead?
Or should Emacs somehow do better with a hanging process?
Best regards,
Stefan Kangas
next prev parent reply other threads:[~2019-10-14 19:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-21 14:20 bug#21972: 24.5; Running 'bash -i -c' via shell-command hangs on FreeBSD Davor Cubranic
2019-10-14 19:55 ` Stefan Kangas [this message]
2019-10-14 20:09 ` Eli Zaretskii
2019-10-14 20:50 ` Stefan Kangas
2019-10-17 4:47 ` Davor Cubranic
2019-10-17 11:36 ` Stefan Kangas
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=CADwFkmmd7DNZd-Sne81TGqvYwmNvjhXhVAfF_h8gUppwXyv4mg@mail.gmail.com \
--to=stefan@marxist.se \
--cc=21972@debbugs.gnu.org \
--cc=davor.cubranic@alumni.cs.ubc.ca \
/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.