Open borkovic opened 1 year ago
I believe the issue is that builtin b_return
calls ssetstatus
. Most other builtins call set
which in turn calls setstatus
.
setstatus
and setpipestatus
call statprint
which checks dashee
, but ssetstatus
does not call statprint
and does not check dashee
.
For
bash -e
, error in a function causes exit:For
rc -e
, error in a function does not cause exit (subsequent commandfalse
does cause exit):I checked that the status after
cd3 /jfjfjoei
is correct (1).