Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

New problem with ERR_RETURN ?



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