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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22168 invoked from network); 18 Jul 2021 19:12:45 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 18 Jul 2021 19:12:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Subject:Cc:To:From:Date:References:In-Reply-To:Message-Id: Mime-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=OpG3F/Hp2hoKLDfHHNN/wScBSL2U9bSw/s2nhWpN8Bc=; b=YM0rXnksNBxJOgpqj4cJiLZ0Ok /XWPULBTeANeaTa7cK34JIzjkE/zYzTS5Ec6eusaRwuNacRo9HclLLv//9EYQOzpslu5Kq4kpcca1 qUfo+70ve/kcduw6lbD7hoFflpp9V/CX+2P9y+mYK67RDKKd67VVWbMPVzw3FawvmR9+SOE3yxXNi R82v2bn5ZupDxqvYJdiElc42LFZgclOafMa+/mgrRW6AY1zHwJ1j6dtDz+BHHRWIQRgCpYppKIcPG rUrMOsiDaVCIAFLmnbUBrx/63xegBjr5asF6B3USgXOI/iPPwKSw6oZ2e0RhEXYADKJEeja0+OmiO v5Q8nHrQ==; Received: from authenticated user by zero.zsh.org with local id 1m5CDT-0003JO-Mr; Sun, 18 Jul 2021 19:12:43 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1m5CCq-0002Yn-PR; Sun, 18 Jul 2021 19:12:05 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id 9946827C005B; Sun, 18 Jul 2021 15:12:03 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute3.internal (MEProxy); Sun, 18 Jul 2021 15:12:03 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdekgdduudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtgfesth hqredtreerjeenucfhrhhomhepnfgrfihrvghntggvpgggvghljoiiqhhuvgiiuceolhgr rhhrhihvseiishhhrdhorhhgqeenucggtffrrghtthgvrhhnpeeufeehleeikeeijedtgf fgteehheeivddtiedukeejvdejgfejudefkeevlefggeenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihvhdomhgvshhmthhprghuth hhphgvrhhsohhnrghlihhthidqudduhedukeejjedtgedqudduledvjeefkeehqdhlrghr rhihvheppeiishhhrdhorhhgsehfrghsthhmrghilhdrtghomh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 42A9CA03977; Sun, 18 Jul 2021 15:12:03 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-533-gf73e617b8a-fm-20210712.002-gf73e617b Mime-Version: 1.0 Message-Id: <459fe38d-70af-4445-b578-4a185b56275b@www.fastmail.com> In-Reply-To: References: <20210513101751.j5vo2dbrd5uzwju4@jo-so.de> Date: Sun, 18 Jul 2021 15:11:42 -0400 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Daniel Shahaf" Cc: zsh-users@zsh.org Subject: Re: Zsh spins in endless loop with SIGHUP + read in zshexit Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Seq: 26790 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Thu, May 13, 2021, at 10:36 AM, Daniel Shahaf wrote: > Thanks for the bug report and analysis. I don't have anything to add=20= > to that. However: >=20 > J=C3=B6rg Sommer wrote on Thu, 13 May 2021 10:17 +00:00: > > if read -rq junk"?Root filesystem is still read-write. Remou= nt ro? (y/N) " >=20 > You don't have to name the variable here; =C2=ABread -q '?foo bar baz = '=C2=BB is=20 > valid. This, then? >=20 > diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo > index 61dc6986f..92f379d49 100644 > --- a/Doc/Zsh/builtins.yo > +++ b/Doc/Zsh/builtins.yo > @@ -1449,7 +1449,7 @@ findex(read) > vindex(IFS, use of) > redef(SPACES)(0)(tt(ifztexi(NOTRANS(@ @ @ @ @ ))ifnztexi( ))) > xitem(tt(read )[ tt(-rszpqAclneE) ] [ tt(-t) [ var(num) ] ] [ tt(-k) = [=20 > var(num) ] ] [ tt(-d) var(delim) ]) > -item(SPACES()[ tt(-u) var(n) ] [ var(name)[tt(?)var(prompt)] ] [=20 > var(name) ... ])( > +item(SPACES()[ tt(-u) var(n) ] [ [var(name)][tt(?)var(prompt)] ] [=20= > var(name) ... ])( > vindex(REPLY, use of) > vindex(reply, use of) > Read one line and break it into fields using the characters Hi Daniel, Planning on committing this? --=20 vq