Geoff Wozniak wrote:
> 
>   # zsh -c 'x=$(false); echo $?'
>   0
> 
> This seemed odd to me; I expect the result to be '1'.  In fact, 
> '1' is what both ksh and bash produce on the same system.  On 
> other systems I have access to (Linux variants, FreeBSD, other 
> OpenBSD installs), ksh, bash, and zsh also produce '1'.

You can try just running

$ false
$ echo $?

Maybe ktrace of false. Maybe another command that fails, like ls xxxxxx.

Reply via email to