Adam Dinwoodie via Cygwin-apps writes:
> When running as part of a `&&` chain, Bash's `set -e` behaviour is
> suppressed entirely, which means calls that produce non-zero error codes
> will be ignored if they're called inside functions that are part of such
> a chain.
>
> To avoid silent failures from commands in a src_install function being
> ignored, don't chain the function calls with &&, and instead just let
> Bash's `set -e` behaviour handle failures.

That patch circumvents the shortcutting of the execution chain at the
first fail and might produce undesirable results elsewhere.  Unless
there's another interesting behaviour in Bash, it should suffice to
follow the last command in the "&&" chain by "|| false" to transfer the
status of the chain to PIPESTATUS (provided that the return code of the
functions involved is set correctly).


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Factory and User Sound Singles for Waldorf Q+, Q and microQ:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds

Reply via email to