Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
bug: $? after empty command
- X-seq: zsh-workers 27103
- From: Eric Blake <ebb9@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: bug: $? after empty command
- Date: Thu, 9 Jul 2009 13:12:20 +0000 (UTC)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Sender: news <news@xxxxxxxxxxxxx>
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