Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Unexpected behavior with pipe_fail and err_return
- X-seq: zsh-users 24729
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Unexpected behavior with pipe_fail and err_return
- Date: Sat, 28 Mar 2020 23:19:57 +0100
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
() {
emulate -L zsh -o pipe_fail -o err_return
false | while false; do; done
echo $?
}
This prints "1". Is this expected? I was hoping for no output.
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author