Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: bug: $? after empty command
- X-seq: zsh-workers 27115
- From: Eric Blake <ebb9@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: bug: $? after empty command
- Date: Thu, 9 Jul 2009 21:41:51 +0000 (UTC)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <loom.20090709T130223-845@xxxxxxxxxxxxxx> <20090709154124.2cd2a227@news01> <loom.20090709T210453-932@xxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
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