Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
set -e (no && or ||)
- X-seq: zsh-workers 30727
- From: "Sergey Fadeev" <hindsight@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: set -e (no && or ||)
- Date: Fri, 12 Oct 2012 07:05:41 -0400
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Why doesn't it exit the shell?
$ set -e
$ echo $(false)
Shouldn't the error code of $(false) command substitution be checked by set -e before passing stdout to the echo builtin?
Isn't it the most logical behavior that most people would expect of set -e?
Zsh version: zsh 4.3.17 (x86_64-redhat-linux-gnu) (if it matters)
Thanks
Messages sorted by:
Reverse Date,
Date,
Thread,
Author