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 10826 invoked from network); 7 Dec 2022 17:10:09 -0000
Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368)
by inbox.vuxu.org with ESMTPUTF8; 7 Dec 2022 17:10:09 -0000
ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1670433009;
b=Uyo6nNmaZlwQCuUJjeDWfgjAFXHlwhwf11ZY4VMS6awF1th02rDWg7V1ymYJn9EV9gN8ple4n7
/j2nX/AxAP/ovcLhobFL+iyQBOtGnNd0TPdFRZGqO2HEDVzmtTIgmTNoraRZ5UBVijpofoM9HP
PNgMfhW9+VTrZf0zFw3oqHlIAjJ8uqiVLdjo1zS/HKvVuM+6XPyTSjBKi7ht7CgaXJw1sE0lN0
Yo84LeF4MqS3vJbHYYAa8qi2IRg11WmRQYqSdEBY/cqQK5mYSldm0dnBknXKJEEEDF1Atvz2Zz
wRQFz8BfgRVR5DUIKezZfGcPDrZ5KzyjtjYmMhAvlAFXIA==;
ARC-Authentication-Results: i=1; zsh.org;
iprev=pass (smtpq1.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.96;
dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256;
dmarc=pass header.from=ntlworld.com;
arc=none
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1670433009;
bh=g2nSqKJd8vqL7U5kr51XWRM434rVsUrNnIhpQgHUteI=;
h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help:
List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:
References:In-Reply-To:Message-ID:To:From:Date:DKIM-Signature:
DKIM-Signature;
b=ojHjEfCXUJOszBMsLzz2cnb669v0p247RkNSp/x9jK/2FPAXG7/osUcBw9Y/x1GJIyJ2/UJnQ+
Zdrn0JrdjKR1wGN4r6fVCfyiIDWl+/2BhqY0A7FHxJIalGJfe8C1dSG4eKzMHBPJKPl2BrIG4G
5W/haacNSJTEaAdXkL+pSqTB2WyznWZlATZKCwUNU2EO05ltThH19F5VTalTXTupBe1JsYMRGZ
cg/BmcrrVJrqb6xEq+suY2ISKQ2J5d802JQV4uJawTToHnFLggPDGJkCCiOzjDwxVd+hL9HPcF
F6RKy6GGIimxFfEkzpp2v8OE8oNdFnzAqdIAp+x79+Jz8A==;
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-Transfer-Encoding:
Content-Type:MIME-Version:Subject:References:In-Reply-To:Message-ID:To:From:
Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:
Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID;
bh=ipqRy4ZtoW+He1U6ooyfAMBWI15HBg1kxZzG0sHwrGI=; b=SGAlDgGp8pno4aUu/1KvVOfwK7
pI/5fB8w6ahbkpDRxkR9Wl518Vi+6FcFH1DPpqAS32XGEbqIJfSZ7CJirqEy+JnNWPOiKDjgWaGcL
oqkjaBArftplRzoc5x6C+gIHWYDjH+7ebtmlS28BKrkVQlf9m3o0e3B31m5X2X+pyUgy7DO3NbHRz
OIDvaM3BKCJmxdW4tHWzLtkWSOdOJCdDsrJBNrh5/T/QT2BuCXXW1FTTfEFoVLKEZdAoO3rd1Yvj0
8uI0BnPqpTh0UCIzM66Bs71qa4MK6XaWHjMGW6UnggxEpjmZVKxWCQwriBL2pig1Hmd1Mwmj5gvDR
+AwJLmPw==;
Received: by zero.zsh.org with local
id 1p2xvt-0003dU-3j;
Wed, 07 Dec 2022 17:10:09 +0000
Authentication-Results: zsh.org;
iprev=pass (smtpq1.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.96;
dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256;
dmarc=pass header.from=ntlworld.com;
arc=none
Received: from smtpq1.tb.ukmail.iss.as9143.net ([212.54.57.96]:36514)
by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
id 1p2xtW-0002hy-H0;
Wed, 07 Dec 2022 17:07:43 +0000
Received: from [212.54.57.82] (helo=smtp3.tb.ukmail.iss.as9143.net)
by smtpq1.tb.ukmail.iss.as9143.net with esmtp (Exim 4.90_1)
(envelope-from
)
id 1p2xtW-0005eQ-Cq
for zsh-workers@zsh.org; Wed, 07 Dec 2022 18:07:42 +0100
Received: from oxbe19.tb.ukmail.iss.as9143.net ([172.25.160.150])
by smtp3.tb.ukmail.iss.as9143.net with ESMTP
id 2xtWpXotuYBhJ2xtWpa3ps; Wed, 07 Dec 2022 18:07:42 +0100
X-Env-Mailfrom: p.w.stephenson@ntlworld.com
X-Env-Rcptto: zsh-workers@zsh.org
X-SourceIP: 172.25.160.150
X-CNFS-Analysis: v=2.4 cv=Vd8xfnl9 c=1 sm=1 tr=0 ts=6390c85e cx=a_exe
a=5CzvcAr/sXcdrkwznnUi5w==:117 a=KHkPskhuMikA:10 a=IkcTkHD0fZMA:10
a=4R3cdCwsknMA:10 a=q2GGsy2AAAAA:8 a=NLZqzBF-AAAA:8 a=94thRD8xEaMHm4B0njkA:9
a=QEXdDO2ut3YA:10 a=z9dJwno5l634igLiVhy-:22
X-Authenticated-Sender: p.w.stephenson@ntlworld.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntlworld.com;
s=meg.feb2017; t=1670432862;
bh=g2nSqKJd8vqL7U5kr51XWRM434rVsUrNnIhpQgHUteI=;
h=Date:From:To:In-Reply-To:References:Subject;
b=r9xq0fKI56AbpbuwBkZA72lv+V9mYsotqm5sQOAo+ETQrBv0pQx/73TZgzApe7qie
E7XIOwADnyviU+NV+ihD7FPw1YF0d+7pLFeMIcis1A0n9Svfj6nOc/Pws45BRe/ssG
v2621zKmNO93+gE+klXgMAYft2lP22jE2uVurGv9RyTJVnlOqP5p5QsKzT5rBx1hKF
g4c2SpjMC2S8W8FoQNN+nd9X1bPHsNiKMUG8NiTqJBtZidYS7hLZrvFcA287YtgDaI
zuH/YYFHb7ez+i/PRu1Vk+B54984TqeVCQEwwbubYmBJq3MJXchAYKTtCL0ttrrHh0
jS7PrhIlZSuTQ==
Date: Wed, 7 Dec 2022 17:07:42 +0000 (GMT)
From: Peter Stephenson
To: Zsh hackers list
Message-ID: <1536100214.2124060.1670432862096@mail.virginmedia.com>
In-Reply-To:
References:
<1294443392.2122422.1670431987664@mail.virginmedia.com>
Subject: Re: New problem with ERR_RETURN ?
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Priority: 3
Importance: Normal
X-Mailer: Open-Xchange Mailer
X-Originating-IP: 165.225.17.21
X-Originating-Client: open-xchange-appsuite
X-CMAE-Envelope: MS4xfBVpvqCEpn7envLqkYjT2ZOy5NVjh7UhmmlJqogeoh/f/4upDBvgr4AuL3rl8hVz7oalzL8v5rFYZUHBIhm8dLX3/IDAc3TU6vFp4qmDhJVgX+IKTou3
R4OY/R40knnsEGtLAoJyQctP/8OhDlD+QkvuUdNIA8eZAIsOY0Tfzaa2gBzcYUOIw1IRY9tFnyJTQfk8hJ+2BUZ4wduGQS5cVy4rTAHuwMT6PMiVPJwWtSuJ
X-Seq: 51123
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 07/12/2022 17:02 Bart Schaefer wrote:
> On Wed, Dec 7, 2022 at 8:55 AM Peter Stephenson
> wrote:
> >
> > +
> > +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 script for this purpose.
>
> Um, no, it doesn't return to the prompt, it kills the shell.
Yes, that would presumably require testing with a different
option, wouldn't it?
diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo
index 445052617..b2213eb44 100644
--- a/Doc/Zsh/options.yo
+++ b/Doc/Zsh/options.yo
@@ -1744,6 +1744,9 @@ Exiting due to tt(ERR_EXIT) has certain interactions with asynchronous
jobs noted in
ifzman(the section JOBS in zmanref(zshmisc))\
ifnzman(noderef(Jobs & Signals)).
+
+Note this behaviour is not disabled in interactive shells ---
+a non-zero status on the command line causes the shell to exit.
)
pindex(ERR_RETURN)
pindex(NO_ERR_RETURN)
@@ -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)