zsh-workers
 help / color / mirror / code / Atom feed
* New problem with ERR_RETURN ?
@ 2022-12-07 16:17 Bart Schaefer
  2022-12-07 16:37 ` Peter Stephenson
  2022-12-07 16:41 ` Philippe Altherr
  0 siblings, 2 replies; 9+ messages in thread
From: Bart Schaefer @ 2022-12-07 16:17 UTC (permalink / raw)
  To: Zsh hackers list

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
%


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-12-08  9:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-07 16:17 New problem with ERR_RETURN ? Bart Schaefer
2022-12-07 16:37 ` Peter Stephenson
2022-12-07 16:41 ` Philippe Altherr
2022-12-07 16:53   ` Peter Stephenson
2022-12-07 17:02     ` Bart Schaefer
2022-12-07 17:07       ` Peter Stephenson
2022-12-08  6:05         ` Lawrence Velázquez
2022-12-08  9:24           ` Peter Stephenson
2022-12-07 16:58   ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).