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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4098 invoked from network); 8 Dec 2022 06:06:23 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 8 Dec 2022 06:06:23 -0000 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:Content-Type:Subject:Cc:To:From:Date: References:In-Reply-To:Message-Id:Mime-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=c7l3t17EPrwFBblTM0MnPvzr5YvfvSJgCQDirutWwaE=; b=qWY0iDu22rhT+/2zIR2o8U+Ilh aakXrT5qFjIhjbE2g/2ObVUEdZRSW6yunTkL0KFZu+yW3j6WRrfs0lzzChR3BeQUWKwZbpFKHval/ yKlOeYHWuUykBxw42ZwdZ58NuXgSsybwLdnR9M2Rhn4aPdVZYzkXphLi6c3x0YGKv9vGPEysM2QQ5 GqJzXnWbDr6rzTT6jy+kgmu8AI1w5j4TM5+6Q26YUCI2dLaPlEWgIGIqHtL3c+4NxO2z4oucaDNzR cCHLTLOZ/C4MfIJ8RdSr1CWBM7tghOC7HTnmofwyN2wEjN8AyrXZGUBqgTm0U+Fh7QbWsjmZiZDyy bMMgPpJw==; Received: by zero.zsh.org with local id 1p3A33-00009E-MW; Thu, 08 Dec 2022 06:06:21 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1p3A2S-000PqN-Gu; Thu, 08 Dec 2022 06:05:44 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailauth.nyi.internal (Postfix) with ESMTP id A3E8327C0054; Thu, 8 Dec 2022 01:05:42 -0500 (EST) Received: from imap48 ([10.202.2.98]) by compute1.internal (MEProxy); Thu, 08 Dec 2022 01:05:42 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudelgdelfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreerjeenucfhrhhomhepnfgrfihr vghntggvucggvghljoiiqhhuvgiiuceolhgrrhhrhihvseiishhhrdhorhhgqeenucggtf frrghtthgvrhhnpeelkeehjefgudefgeekueegudeghfevvdeljeehieeuffehveejgfeh tefhudevhfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehlrghrrhihvhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqudduhedu keejjedtgedqudduledvjeefkeehqdhlrghrrhihvheppeiishhhrdhorhhgsehfrghsth hmrghilhdrtghomh X-ME-Proxy: Feedback-ID: iaa214773:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 57AF431A0063; Thu, 8 Dec 2022 01:05:42 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1115-g8b801eadce-fm-20221102.001-g8b801ead Mime-Version: 1.0 Message-Id: In-Reply-To: <1536100214.2124060.1670432862096@mail.virginmedia.com> References: <1294443392.2122422.1670431987664@mail.virginmedia.com> <1536100214.2124060.1670432862096@mail.virginmedia.com> Date: Thu, 08 Dec 2022 01:05:00 -0500 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Peter Stephenson" Cc: zsh-workers@zsh.org Subject: Re: New problem with ERR_RETURN ? Content-Type: text/plain X-Seq: 51130 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 Wed, Dec 7, 2022, at 12:07 PM, Peter Stephenson wrote: > @@ -1772,6 +1775,12 @@ function, code inside it is considered > separately: it may force a return > from tt(summit) (assuming the option remains set within tt(summit)), > but > not from the enclosing context. This behaviour is different from > tt(ERR_EXIT) which is unaffected by function scope. > + > +It should also be noted that this option forces an immediate > +return to the command prompt when the non-zero status occurs > +in a sequence of commands typed on the command line. In other > +words, the sequence of commands typed by the user may be > +thought of as a function for this purpose. > ) > pindex(EVAL_LINENO) > pindex(NO_EVAL_LINENO) Bikeshedding perhaps, but this sentence already exists just above: This will trigger an exit at the outermost level of a non-interactive script. Maybe any new text should come right after this? That would keep the explanations about how ERR_RETURN affects behavior at the top level in one place. -- vq