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

=cmd cancels the whole code block



~$ zsh -f
% a==a
zsh: a not found
% echo $?
1
% a==a || a==b
zsh: a not found
% a==a; echo $?
zsh: a not found
% (a==a); echo $?
zsh: a not found
1
% {
cursh> a==a
cursh> echo foo
cursh> echo bar
cursh> }
zsh: a not found
%

should it be considered as a normal behavior?

Revealed following a recent usenet thread in comp.unix.shell.
For one trying to do:

{ EDITOR==emacs || EDITOR==vi; } 2> /dev/null

-- 
Stéphane



Messages sorted by: Reverse Date, Date, Thread, Author