Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
New problem with ERR_RETURN ?
- X-seq: zsh-workers 51116
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: New problem with ERR_RETURN ?
- Date: Wed, 7 Dec 2022 08:17:17 -0800
- Archived-at: <https://zsh.org/workers/51116>
- List-id: <zsh-workers.zsh.org>
After zsh-workers 51001, 51071, 51076 (Philippe A.)
This seems wrong:
% setopt errreturn
% f() {
while return 5
do
echo fail while1
break
done
}
% f ; echo $?
%
Note that "echo $?" was not executed when it appears in the same
command line as "f". I don't believe ERR_RETURN should be having an
effect there.
Compare:
% f
% echo $?
5
%
Messages sorted by:
Reverse Date,
Date,
Thread,
Author