From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19505 invoked from network); 26 Apr 2022 03:00:24 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 26 Apr 2022 03:00:24 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1650942024; b=EOGtNmGzJ98XEKSWxmJREngifIC3klSJ6ehba/iU0ilLSlpYTv42SDBmXYzvQYoJv226qGCoiu kQHm+W2ydifVw8RkLdcghWvCt5/KH1JluCkIcV2KacYFsbKbYyzYIxpFC3ZjQNdRm/l+p/l22E QanGE9sgQW5+ytplHqp+V5K1QD8Xw9BTgAvZuIGGjzzxvwFwiTpqbyVCsp9f2sMJgR4Q4ypBeS sQvXeNz8fWtympfeOMFV5Zn3Su4NFDdpESSJj70Tc3vttf+8eq/dtMcKZVWQfkrGGZkkcmqu8p wvo3FbwkWVD+UyWiH2Y8TEzTOTCicJETF4y2y8q3GBt0Mw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=none header.from=vinc17.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1650942024; bh=gVWIG+tPj58t7avZody70Z65ZCh4E7J63kIl9ytSb+Y=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:To:From:Date:DKIM-Signature; b=paWJCsaW62YJz920uCzjm2dWcF4xEPrcDojjMJGlL5c2jTDgFx52SSFpfOyTkQdb3/7azlPRMW p/9BWmhJDh+wbFrNNlBhAk5kkIBa5q6C6DfRL0ewbyYn3lm7lAr2S5Mi0thdDPmmN0P4U/wgF2 4FwUS5kvsBgiVWtEgjN9Io0B5vysJf+rschwSRCfw6qzig29hO1r0s+5iBplGV6RiUUUGMf7Xz i9OLlaO1xoLvxuBgYvpLyF/8zReLSB7rDr/iZQFG2rMvJahQT45TscvOa4dzhAdSF+8ra1DtMu P6QNtrs3KCMLenjSIT1r8OtJwbSKBrbPnNbgmkEJHElGaA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=NTNkSgTuB+61PWOgJtRPuW+H61mM37rc9DgzJ6Uyfsw=; b=YSh6O2Ne+km5niQmSZkMhKMouF cZ1Z2B1S+XaYt6boftRGz9XQekKdnEQFyn76kwQNbZ95+FwkU5ySM4N2fQkczLWowzM4XdmUM506b 2T6e/RJYYPRMqxxSwrSQ9dP4SL4m/pYz60tWlB1OtM88GbrLtX7OUkcTC8wusQBdkGI2CiZHVh7Q3 DevgyrFyM4zeGUoVEAstd4mXSRgnGFwblQ9LM3qX43m63vbmnl++H6PyYpIgEfXTrde54d0diNvqC ZXT1ISKHU2Mn7wEKFsklZSlAEKe2fVqHVvvhCogW9xIBbo84qrs2cniuh6CSXrN67HrIM9tRwm0kF 6RF3dNqQ==; Received: from authenticated user by zero.zsh.org with local id 1njBRA-0001Oz-3N; Tue, 26 Apr 2022 03:00:24 +0000 Authentication-Results: zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=none header.from=vinc17.net; arc=none Received: from joooj.vinc17.net ([155.133.131.76]:52698) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1njBQt-00016J-Ee; Tue, 26 Apr 2022 03:00:09 +0000 Received: from smtp-zira.vinc17.net (128.119.75.86.rev.sfr.net [86.75.119.128]) by joooj.vinc17.net (Postfix) with ESMTPSA id A4DD17B; Tue, 26 Apr 2022 05:00:03 +0200 (CEST) Received: by zira.vinc17.org (Postfix, from userid 1000) id B892A280025E; Tue, 26 Apr 2022 05:00:02 +0200 (CEST) Date: Tue, 26 Apr 2022 05:00:02 +0200 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Re: Ctrl-\ while executing a pipeline made zsh quit Message-ID: <20220426030002.GC100943@zira.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org References: <20220426003649.GA100943@zira.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.2.3+10 (6e7437c4) vl-138565 (2022-04-12) X-Seq: 50098 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On 2022-04-25 18:24:15 -0700, Bart Schaefer wrote: > On Mon, Apr 25, 2022 at 5:37 PM Vincent Lefevre wrote: > > > > With zsh 5.8.1 under Linux (zsh 5.8.1-1 Debian/unstable package), > > while I was executing a pipeline, I typed Ctrl-\ to interrupt it > > (Ctrl-C had no effect), which made unexpectedly zsh quit: SIGQUIT > > should interrupt the commands zsh starts, not the interactive shell > > itself. > > I'm unable to reproduce this on Ubuntu 20.04 with 5.8.1.2-test. I can't reproduce it either. This may be a timing related issue: perhaps there's some place where if a signal is received, everything goes wrong (Ctrl-C normally has an effect, so perhaps things were wrong when I first try Ctrl-C). The only case I had found where Ctrl-C had no effect was this bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=931216 https://github.com/gwsw/less/issues/12 i.e. in case of process substitution, but here there was no such thing. Or perhaps the cause of the issue was that here, the Ctrl-C didn't kill the left-hand side (possibly because the ssh started by svn got frozen... not sure). > I vaguely recall there's actually a bug in some version(s?) of "less" > that causes its parent to exit? I'm not aware of that, and I don't see how this could be the fault of "less" (unless it kills his parent, but why would it do this?). > I did discover that if "less" exits with an error, the whole pipeline > becomes unkillable with either INT or QUIT; the shell is hung until > the left side exits. If "less" really exits, how could this happen? -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)