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 2857 invoked from network); 26 Apr 2022 09:18:49 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 26 Apr 2022 09:18:49 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1650964729; b=fHZ7BVk7ZjH90OKN+hCGceEpJ3N8EF3qaSvdSyY2ac/v2ySdSlMgBXAkJpchRLD1DgwznHFv3E T2sBtxz2QRshZoK8hM+3Bpp6ktJPN9gQ4R3wLKgagQh34it5CDClFY/FXW0SH8LYrCOSMXhk/9 kFzkTnbPUBVXwdVd1f4wQJQl47GoFRp+tAos1gw3+DaBZ0A2L2mXBdQdYRr3+zmmVaX+YohE4V KYfTLjoCXEt2P7POBYPAlvFZ9E02dbQ9fPmPIvz2BYqggbQ/j1Qmz2/DFbFFy7H1kHHx/AD2t+ Pw3e4vdl1q9NuuPk9Erk+qlBblObQkZ/Cfz9X7S3ASX5WA==; 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=1650964729; bh=seCPRxfoousWkEgV0KsVW1LuwUR6FdHjj8PMtCYqIzc=; 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=N7vOSlJL/FFGLiFbtQVwclMyZmB/3tWHSzsn8CPpZ1kgQolh/5hi5o4n6+gkAxNLplo1gG8cWd mNSRLYWv8GN8W5+OUYd8bF0Kis4qpNKg+MY9kT/Ictz/XsCFTXxyTMGqgkWBVGy/TNnYtnBrXL 6EidkMHvnbmwevu8hAsOCPi4yH0CrbYOOMFPPBunXc2CASqqE0QJ4XShjRHJpy/5IDDgW3mycr LEHbkIKa+dipGdOCBE9KR5tc19BphMjxWtdobcP0IN/vQrzL4ud2Su37DQIWtiJ3ripvjLrpb8 oScWfa8DcbfmF2W9730RqLXah7nIaN7sxFApIjvOeJSAnw==; 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=pyW7f+/QCyeav2rlYBGEE5kjvc09hepMeszvrSf5PbY=; b=iyW0PtrauWbElCQXVwE5TNoFK7 cJ5QcqDhWc8lp/hiTDAwbp1WZVxbb0pHgpHPG6NWlmmjLTw/8+YHiZq6ixEs+6AQDgxXyF6HSfZ7v JTgr6IxBkgyUn4bcY6uyFcWSU6TYUSkAOk5cjvV43I/CykhP8HlmIujbEehd19iicu9HMCtHgRaVg vz8k+YNZ2CxKduvJUFmL5i6tGQNiJvxKYeghU66s1L0PVDg01M4g/pKY/dCFvqd86vF13B/hhUlmh bvi1jd8VgXaktot9sNu8ynrXlR3jRd4PSxM3621HhANnm4qQnivl1fEgUmqEUTCEpiDvJi2TcXOxX PpX9DESg==; Received: from authenticated user by zero.zsh.org with local id 1njHLM-000FrA-Ex; Tue, 26 Apr 2022 09:18:48 +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]:52906) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1njHL9-000FVg-0v; Tue, 26 Apr 2022 09:18:35 +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 332CF258; Tue, 26 Apr 2022 11:18:34 +0200 (CEST) Received: by zira.vinc17.org (Postfix, from userid 1000) id E0B4F280025E; Tue, 26 Apr 2022 11:18:33 +0200 (CEST) Date: Tue, 26 Apr 2022 11:18:33 +0200 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: pipeline that cannot be interrupted (was: Ctrl-\ while executing a pipeline made zsh quit) Message-ID: <20220426091833.GE100943@zira.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org References: <20220426003649.GA100943@zira.vinc17.org> <20220426030002.GC100943@zira.vinc17.org> <20220426090722.GD100943@zira.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220426090722.GD100943@zira.vinc17.org> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.2.3+10 (6e7437c4) vl-138565 (2022-04-12) X-Seq: 50105 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-26 11:07:22 +0200, Vincent Lefevre wrote: > I wasn't using "mless" in that way, though this may be related to > what I got. Anyway, I think that this is a bug in zsh; this issue > is also reproducible with "head -n 1" instead of "less". Or even simpler: zira:~> ( zsh -fc 'print a few words; /bin/sleep 10' ) | { head -n 1 } a few words ^C^C^C^C^C^C^C^C^\^\^\^\% (the curly brackets are important). I think that's the same issue I had reported in 2019, for which I got no replies: ──────────────────────────────────────────────────────────────────────── Date: Fri, 2 Aug 2019 16:51:06 +0200 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: [BUG] pipeline that cannot be interrupted with Ctrl-C (regression) With zsh 5.7.1 under Debian, the following pipeline cannot be interrupted with Ctrl-C: { /bin/sleep 10 ; /bin/sleep 20; } | { /bin/sleep 30 ; /bin/sleep 40; } But if I remove one of the sleep, it can be interrupted by Ctrl-C. There was no issue with zsh 5.3.1 (Debian 9). Note: I mentioned this example in zsh-users in the thread "kill the LHS command of a pipe once the RHS command terminates". ──────────────────────────────────────────────────────────────────────── See: https://www.zsh.org/mla/workers/2019/msg00672.html https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933730 Neither Ctrl-C nor Ctrl-\ has any effect. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)