Show Navigation
Conversation
Notices
-
@clacke I may be missing something here but won't fail(){ false; echo "Stuff"; } always return true because of the echo returning 0?
-
@perloid As you see in the first example, `set -e` makes it return 1 ("false").
-
@perloid I haven't checked what nasty surprises might turn up if you do `set -e` within the function again, and I won't trick myself into checking that tonight.
I solved my original issue (which I have been battling since yesterday without even knowing it!) and have committed a fix. Time to call this a day and close this particular computer.