Closed
Description
Analogous to #1147
I fixed this case in the last release:
var x = $(false) # now command_sub_errexit is on
But there is still stuff like this:
$ bin/osh -c 'var x = "foo:bar"; IFS=:; var y = $(write -- $x); echo $y';
foo
bar
That is bad. So I think it must be oil:all
, not just command_sub_errexit
The issue is that var y = $(write -- $x)
should behave the same way regardless of context. Following the local reasoning principle