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

bug: $? after empty command



POSIX requires that the execution of an empty command change $? to 0, as shown
here with bash:

$ zsh -c 'foo=; false; $foo; echo $?'
1
$ bash -c 'foo=; false; $foo; echo $?'
0

-- 
Eric Blake




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