From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#21972: 24.5; Running 'bash -i -c' via shell-command hangs on FreeBSD Date: Mon, 14 Oct 2019 21:55:22 +0200 Message-ID: References: <86twof1ljp.fsf@telus.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="96243"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 21972@debbugs.gnu.org To: Davor Cubranic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 14 21:56:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iK6Rv-000Ooe-TR for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Oct 2019 21:56:12 +0200 Original-Received: from localhost ([::1]:56994 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iK6Ru-0001g5-Pq for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Oct 2019 15:56:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46882) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iK6Rn-0001bS-0t for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2019 15:56:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iK6Rm-0007XW-4D for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2019 15:56:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:32954) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iK6Rm-0007XR-0g for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2019 15:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iK6Rl-0001AA-U3 for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2019 15:56:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <86twof1ljp.fsf@telus.net> Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Oct 2019 19:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21972 X-GNU-PR-Package: emacs Original-Received: via spool by 21972-submit@debbugs.gnu.org id=B21972.15710829404433 (code B ref 21972); Mon, 14 Oct 2019 19:56:01 +0000 Original-Received: (at 21972) by debbugs.gnu.org; 14 Oct 2019 19:55:40 +0000 Original-Received: from localhost ([127.0.0.1]:41775 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iK6RQ-00019R-EN for submit@debbugs.gnu.org; Mon, 14 Oct 2019 15:55:40 -0400 Original-Received: from mail-pf1-f173.google.com ([209.85.210.173]:39187) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iK6RP-00019C-Mj for 21972@debbugs.gnu.org; Mon, 14 Oct 2019 15:55:40 -0400 Original-Received: by mail-pf1-f173.google.com with SMTP id v4so10965190pff.6 for <21972@debbugs.gnu.org>; Mon, 14 Oct 2019 12:55:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=fBr4jzRA6MvGR7QpjtzNCbbhD8UJdUYZt//AU/IznYM=; b=ZlaH1QK/3bILKhYTd83gg+NMgsTA+WsHNpoTk6HZgV9PYHjf0+fyjeCcC6qQ5VijjX YVg6KV5zzlaFRzCTUpNC4pbg4ra5hW2fvwZKCAU067lLfFsMnL3ZkovtmhYyjifmTbeP 0T6dq7Ek8Q2VHmj53ua7wyfJYcK/xpvH66p7vGZPNndUF0Wm1MUpYOB8cyT8IU4omOwo OfpDR9Z2ubPImaC3iu+Dw8aLni0N3WEVYPBPqZovJ8lo8PgX8kvh/IZVCVPaWWu2Cy4A HwrgQRrM8hrYshMqmOnA5wVoLUXOWiDUrrZ6294i1MJGRejRLRPqlA+3BYeARd5PwZN0 JZGQ== X-Gm-Message-State: APjAAAW8o5p7nPLN4O50NIZIxTRRM6f/DQ9a/cf+VBCbYf/6DxA9pUuB fSNCC/2TYenwVq6295r566RGgJ6TYtxJJf0jFZU= X-Google-Smtp-Source: APXvYqwrmUOeRiI3vEiN1rHeC4kGRB017/gHH+ynaYjQdp9iXfXezuaxgUDktc87hGB/DuWKbvDy+5vALq0jAD6P0+k= X-Received: by 2002:a63:c10:: with SMTP id b16mr36346580pgl.333.1571082933715; Mon, 14 Oct 2019 12:55:33 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:169298 Archived-At: Davor Cubranic 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