zsh-workers
 help / color / mirror / code / Atom feed
* bug: $? after empty command
@ 2009-07-09 13:12 Eric Blake
  2009-07-09 14:41 ` Peter Stephenson
  0 siblings, 1 reply; 8+ messages in thread
From: Eric Blake @ 2009-07-09 13:12 UTC (permalink / raw)
  To: zsh-workers

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



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-07-11 18:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-09 13:12 bug: $? after empty command Eric Blake
2009-07-09 14:41 ` Peter Stephenson
2009-07-09 21:17   ` Eric Blake
2009-07-09 21:41     ` Eric Blake
2009-07-10  9:02       ` Peter Stephenson
2009-07-10 22:05         ` Peter Stephenson
2009-07-11 16:39           ` Peter Stephenson
2009-07-11 18:43             ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).