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 8984 invoked from network); 7 Dec 2022 16:53:59 -0000
Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368)
by inbox.vuxu.org with ESMTPUTF8; 7 Dec 2022 16:53:59 -0000
ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1670432039;
b=aG2+hDGbFtvwqySgwZeel8+PDDLl8sC7FwvClku9huZxYDyQujhMQ7oKVjBswZbRcTWlSKh2eO
QMxo405XXPL52gK0JyHpVXqvc2A59Lk1r5awbFGK/4VsEbHJNbz3zJsGsRUhEsPjA8HI0rEidj
XcJTXMn0Qhri3Wd29FGgwssHIT1CXbgyRAtnOlolXA8o7AFALep2WMSCgADdPyw8bjojlqvv6r
eFUruknqmI4MwZfaCTDS9BAxv3Vxk7umFxZQ1ZeEs9m9gh+eXZvhvbXHqIQhD126OOiNxQxPtA
exFTx6v34zSg3t/3yL3WavKFveu1dx56IfhV8CV+/oiFzw==;
ARC-Authentication-Results: i=1; zsh.org;
iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97;
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=1670432039;
bh=HkCvspB4JBuajWhU7EUfFOH/aJO1TZe/ScYQDo0TKGg=;
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=MyeiF9OqQg0w9giSOHMMGyPREjnZmvU+YSYwKidCG9yvje51uLtLepEYc2dv7WeH0cl+sjVOjV
WjyiCdGbKVap37NzQpXTstYP6AbSmNL6ahVmfnIkqbVkxYCXlqDDC/G+udADN5+/pV+qUxtYmd
nLtVdo6U9HvIodN/mM3SxIqIygsbHl7kZar5mKYCk3nlUkZcuhOmfE7Wb3HC5rlOTV3XJ387Ib
ytsFqHTd4GakI0UZJnpRQEA50fn1fPsuUXjeAC0NswCE/yKgwyi9gzpEFZq1TeW8c4+GJawtat
sIcBXtsPuivKC+atwSIwSQhrZKHDUoKi5d4EASTnmv/bzw==;
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=zemezwyoGqPCIQr7z6M9kgNfaK4+x/vYCeza34wBnhI=; b=lQtVw6+3g4ARgo1CponuLjXZIf
OFjMuve7SUvih4aGFvsNfYwxQRB6NwHEQF5wTZ1STZctVL6VojjZPvjRzeElh+q68RH8pEzICvLDn
Nl/oK14uWsHZVMbX7eqNxWUvxwTPWvOn9UFyavT74O/+YGzzQtRvmWluMQ1Ecr9DPnLeiHZNsRGEG
2+kjcLVGWRTJAOrBSIH2lh/7XjQIhprwJn6BFZQD7SJ+VKfUlDtLgedmTp2HahvMhv7jP7Kd5j7n2
yPi5PRXndWV7uQeuw93jqb7UfR7Uu+/pwNp3g/hZy62s+Vf/GuEfpiW4piQff3ZXYlDaCihgss2UM
k/CN8ZmQ==;
Received: by zero.zsh.org with local
id 1p2xgF-0000sG-4j;
Wed, 07 Dec 2022 16:53:59 +0000
Authentication-Results: zsh.org;
iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97;
dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256;
dmarc=pass header.from=ntlworld.com;
arc=none
Received: from smtpq2.tb.ukmail.iss.as9143.net ([212.54.57.97]:59590)
by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
id 1p2xfQ-0000Ww-2Y;
Wed, 07 Dec 2022 16:53:11 +0000
Received: from [212.54.57.81] (helo=smtp2.tb.ukmail.iss.as9143.net)
by smtpq2.tb.ukmail.iss.as9143.net with esmtp (Exim 4.90_1)
(envelope-from
)
id 1p2xfP-0001DE-VX
for zsh-workers@zsh.org; Wed, 07 Dec 2022 17:53:07 +0100
Received: from oxbe19.tb.ukmail.iss.as9143.net ([172.25.160.150])
by smtp2.tb.ukmail.iss.as9143.net with ESMTP
id 2xfPpo69b6Asl2xfPpGY11; Wed, 07 Dec 2022 17:53:07 +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=c8ttAzxl c=1 sm=1 tr=0 ts=6390c4f3 cx=a_exe
a=5CzvcAr/sXcdrkwznnUi5w==:117 a=KHkPskhuMikA:10 a=IkcTkHD0fZMA:10
a=4R3cdCwsknMA:10 a=pGLkceISAAAA:8 a=Y-RV8eI6XBMrrvKVHYkA:9 a=QEXdDO2ut3YA:10
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=1670431987;
bh=HkCvspB4JBuajWhU7EUfFOH/aJO1TZe/ScYQDo0TKGg=;
h=Date:From:To:In-Reply-To:References:Subject;
b=6OA7vZ4f26xZZw5K4fWuIV/x5LUYBmaQu4KjJBjo+KWKV+XJND/asmWkifldUjvsW
PvTNgx0iykxcpwjC0XvfFheJNDmjo2TsIZsnXkNRx3HnMIwq4Gc01zJF96qjKjlqr3
FrOPZZpbwRSdcyCUlg4tmklr+XhKYhAo0TsZmKkQyFbR2Xntzx4NlT4aR6rzCegGNO
iPyJYrS6n5NIQVCtS1/0k18Urv5dCcrr8HeGFywhEr5MXwokDp6M60JngneHV3jm9U
a5ni5/Pf8RK+2f03Nzsn19GmVJnh5zOcJwgG3x3taq/UruK0qzc9LuEoYbOkLQHF8S
fxiuIjwMd21IA==
Date: Wed, 7 Dec 2022 16:53:07 +0000 (GMT)
From: Peter Stephenson
To: Zsh hackers list
Message-ID: <1294443392.2122422.1670431987664@mail.virginmedia.com>
In-Reply-To:
References:
Subject: Re: New problem with ERR_RETURN ?
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
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: MS4xfMUF0p8zo3iE6zd9AcQ4vYIZlVT/sc47d77vrGEpk9tl6SiCnjOmjQt5zpww4DFm3TyFu8b27H8cyKivSzq2X1OLeCiX8nZH8rTrpBJFDuL6fAHEZIYh
K05RDBZjxmUUbW2biGa3hHiXcS61yPCa8obAu7AirV8lQGQUf5gGseZRmrSXSxCEseb8JU0FBPXbhrNb2DyJD344P6blNrwiBvPWJ3UMnsRbOYptAbWdU9t2
X-Seq: 51119
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 16:41 Philippe Altherr wrote:
> I don't think there is a problem. At least not a new problem because=C2=
=A0Zsh 5.8 and Zsh dev behave the same way.
>=20
> Note that if you replace the body of "f" with just=C2=A0"false" you get t=
he same results.
Yes, you're correct. We should probably document this somehow.
pws
diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo
index 445052617..dbaab08f4 100644
--- a/Doc/Zsh/options.yo
+++ b/Doc/Zsh/options.yo
@@ -1744,6 +1744,12 @@ 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)).
+
+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.
)
pindex(ERR_RETURN)
pindex(NO_ERR_RETURN)
@@ -1772,6 +1778,9 @@ 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.
+
+Like tt(ERR_EXIT), this option forces an immediate return to the
+command prompt in interactive shells.
)
pindex(EVAL_LINENO)
pindex(NO_EVAL_LINENO)