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

Re: bug: $? after empty command



Eric Blake <ebb9 <at> byu.net> writes:

> But just from inspection,
> it looks like it does not cover these related issues, which are both required
> by POSIX to output 0:
> 
> $ zsh -c 'false; . /dev/null; echo $?'
> 1
> $ zsh -c 'false; ``; echo $?'
> 1

And another one that POSIX requires to output 0:

$ zsh -c 'false; sleep& echo $?'
1

-- 
Eric Blake




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