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 22:50:22 +0200 Message-ID: References: <86twof1ljp.fsf@telus.net> <837e57hyx3.fsf@gnu.org> 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="59823"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Davor Cubranic , 21972@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 14 22:51:12 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 1iK7JA-000FQJ-0n for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Oct 2019 22:51:12 +0200 Original-Received: from localhost ([::1]:57514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iK7J8-0005vr-IP for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Oct 2019 16:51:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55818) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iK7J1-0005tF-QZ for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2019 16:51:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iK7J0-0006qG-Pg for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2019 16:51:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33105) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iK7J0-0006qB-M0 for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2019 16:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iK7J0-0000d0-Jc for bug-gnu-emacs@gnu.org; Mon, 14 Oct 2019 16:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Oct 2019 20:51:02 +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.15710862462354 (code B ref 21972); Mon, 14 Oct 2019 20:51:02 +0000 Original-Received: (at 21972) by debbugs.gnu.org; 14 Oct 2019 20:50:46 +0000 Original-Received: from localhost ([127.0.0.1]:41920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iK7Ii-0000br-R1 for submit@debbugs.gnu.org; Mon, 14 Oct 2019 16:50:46 -0400 Original-Received: from mail-pg1-f175.google.com ([209.85.215.175]:42354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iK7Ig-0000bV-5C for 21972@debbugs.gnu.org; Mon, 14 Oct 2019 16:50:42 -0400 Original-Received: by mail-pg1-f175.google.com with SMTP id f14so5632953pgi.9 for <21972@debbugs.gnu.org>; Mon, 14 Oct 2019 13:50:42 -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:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dGK+rX8RRktzaHrw+By4jwvP8lyQeuw4g0d4+K6HUS0=; b=dB8PrJpXo+PQ8bO8k5mAK9+mF/SjzqX/Y5PQMQIVrPHAw9Su6qZofA91qCcZDV2bOy T41GCoivaDdwosAB7TliSDG3zg1Dgsk+2L2iKxJazkfebaoNa2enpzzF11r5RWwbk1Td iKprGKUZ5E97HpDXOoNMYHgLBHRKyuz0dX3SGKW9covOLg+rtrCm6e5z/TNRHZCMcfN8 Q8UK/Yfve6E/W6GEZfzt0OuZijCI+7QQM8sZxFsmLc/gMpqAMZwmnZkqiaZ9PgIQ4xyd 93hZ9F87afNxPhLb2wvZhBp9gXRt4epeWEAD5AugZoWPoQGPs92xj/PCbZO58eQCSBx3 2HUw== X-Gm-Message-State: APjAAAXZhRFr+xxnbK+R4wciI/jZQFWrjfbdcSC6u8O24brooRd5uB7u cMBOYT16zrHsbn52YCIC0MqEdEv/Aqup7q7wWKM= X-Google-Smtp-Source: APXvYqx+QyzxSie6mWrZMopSiQNL/vvXll+FFpQSwG1WF/UXogW/vcN/GR1Dmp1OjgTwN1gxKOMNiBjYJpXhMgbWgcE= X-Received: by 2002:a63:4046:: with SMTP id n67mr32394977pga.200.1571086234366; Mon, 14 Oct 2019 13:50:34 -0700 (PDT) In-Reply-To: <837e57hyx3.fsf@gnu.org> 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:169316 Archived-At: Eli Zaretskii 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