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 1639 invoked from network); 26 Apr 2022 09:08:00 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 26 Apr 2022 09:08:00 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1650964080; b=KZwL4uN1Vvb4IoWH1SL2FxsxxcvmtHDkCrjHBzT2ACoz0CycNhDSz2qAMlxvFfjLZCr4GH2Ctg cEvcCB1SGMXjDtJxZtKKWaphnHF7gAxEmONmhJqaGNxKa9K54ATdeTF6nHfBtbPjVesj8IeakG +o8Y24GVIjPj+GDuXggwfyTzHj6iCbVq2U7y3CJAEK0GgqlH5EXkmSyIHpId1DvJHHQQCHrnyq YNBm9OXcjsffiutII4sSzvvHWRa3KJrRtTvqal5sTS6/WWh2flBDhQK8FbgebDXbdKU6ZAXx0+ 3gqQ8QU+Ux+wn+fRzd7GFLgywnvbY9Jd7c2288OfRoshMw==; 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=1650964080; bh=GyetmpqfRXAtAAyF7+QHMqw+vgXimtMjDr3E+tWaVcU=; 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=CJLL6MmlKWjz/Y2qHLazTmtU7rx5qKJQpVj+3kIAeUSEez5gYlVwCkQDocEn4bGRutW/4SJZs0 D66xM7GXq1I90VPt5jinl4/KBAF6VFu4EBaDig0AJCVcVtUKpDaxzvyf3tJFlZesqigeB3r+KY SZJEsh0x4QktJw1LQfJH1CWbrHfl38qq7PXHjs6GkyIv3qy4AJXjJLjBYKeAdcfOqE+MNz+4q7 PCyYR7JgyXg623Kv0ETbCex8ZX7hlPsnhheEdqhkWAz7FbNTRxkQPy3L7ehL0Chmp7MA2td6MW KZ8aBmX/xrjcu1D75cfUot3j4Nef52wCqvLG2RInGg+Z3Q==; 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=cCXE0G4ho9DMu0rqHUJvQciuxgqvrMpc88uFRwQ8KjY=; b=rlwj/7CVu+NlMjqyjZxVHvlLdO I4fBCDiOfsGJUrr9SPZWbT9X7v27lcU5Vdmne5Mjrp1YVGyEP8v+mZ9n2nz/f/5w1yG0ry2Hv3Onf AuWv8C8Hqg6x5SBzxmIg3vh8PM48caj98AP3S8IL5zTCu6IvK1rw7X26UYL+Ecxf19rLXLy7n4/1j 3ifEF5oB7eZdgSQeWjWrlt1s3Xa+DxxrZaPj8VuyO5EOQQMuCbJQeDwfoY/tA7gfNsxXPXgwD8iln xgYtaRvlRa+y1ynAspePN9uUXj1csD3EGP1ZqAjUTt8ACi6PVvvSAuVq6FZDYzmmCp/NDxMW/0vtG cvQcI0UA==; Received: from authenticated user by zero.zsh.org with local id 1njHAt-000EzD-62; Tue, 26 Apr 2022 09:07:59 +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]:52904) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1njHAJ-000Eg8-AM; Tue, 26 Apr 2022 09:07:24 +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 51239258; Tue, 26 Apr 2022 11:07:22 +0200 (CEST) Received: by zira.vinc17.org (Postfix, from userid 1000) id 1FF92280025E; Tue, 26 Apr 2022 11:07:22 +0200 (CEST) Date: Tue, 26 Apr 2022 11:07:22 +0200 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Re: Ctrl-\ while executing a pipeline made zsh quit Message-ID: <20220426090722.GD100943@zira.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org References: <20220426003649.GA100943@zira.vinc17.org> <20220426030002.GC100943@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: 50104 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 21:05:11 -0700, Bart Schaefer wrote: > On Mon, Apr 25, 2022 at 8:00 PM Vincent Lefevre wrote: > > > > > 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? > > When I couldn't replicate your problem, I thought perhaps I was > running the mless function the wrong way, so I did this: > > ( zsh -fc 'print a few words; /bin/sleep 30' ) | mless - > > This causes less to exit with a no-such-file error, at which point all > signals were ignored and no prompt returned until the "sleep 30" > finished. 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". -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)