zsh-workers
 help / color / mirror / code / Atom feed
* [bug] errexit and cmdsubst after "else"
@ 2020-02-01 17:56 Stephane Chazelas
  2020-02-01 19:28 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Stephane Chazelas @ 2020-02-01 17:56 UTC (permalink / raw)
  To: Zsh hackers list

From
https://unix.stackexchange.com/questions/565158/command-substitution-does-not-respect-err-exit-sometimes

$ zsh -ec 'if false; then;else a=$(false); echo $?; fi'
1

expected no output because of errexit.

That seems to be regression. @Gilles there bisected it to
https://sourceforge.net/p/zsh/code/ci/b581c3fece76c87ed86ae9fc704d0fcf208a79d3/

Which seemed to be a fix for a similar bug or regression:
http://www.zsh.org/cgi-bin/mla/redirect?WORKERNUMBER=36766

https://www.zsh.org/mla/workers/2015/msg02685.html

Possibly incomplete.

-- 
Stephane



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

end of thread, other threads:[~2020-02-01 19:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-01 17:56 [bug] errexit and cmdsubst after "else" Stephane Chazelas
2020-02-01 19:28 ` Peter Stephenson

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