zsh-users
 help / color / mirror / code / Atom feed
* Unexpected behavior with pipe_fail and err_return
@ 2020-03-28 22:19 Roman Perepelitsa
  2020-03-29 17:29 ` Mikael Magnusson
  0 siblings, 1 reply; 3+ messages in thread
From: Roman Perepelitsa @ 2020-03-28 22:19 UTC (permalink / raw)
  To: Zsh Users

() {
  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.

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

end of thread, other threads:[~2020-03-29 17:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-28 22:19 Unexpected behavior with pipe_fail and err_return Roman Perepelitsa
2020-03-29 17:29 ` Mikael Magnusson
2020-03-29 17:34   ` Roman Perepelitsa

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).