Re: [cygport RFC PATCH 1/1] Run install functions separately

2023-11-05 Thread Adam Dinwoodie via Cygwin-apps
On Sun, Nov 05, 2023 at 10:24:43PM +, Adam Dinwoodie via Cygwin-apps wrote: > ``` > #!/usr/bin/bash > > src_install () { > false > echo "This step *does* run" > } > > src_install && echo "As does this step" > ``` The above example should have had `set -e` at the top. Everything

Re: [cygport RFC PATCH 1/1] Run install functions separately

2023-11-05 Thread Adam Dinwoodie via Cygwin-apps
On Fri, Nov 03, 2023 at 05:57:08PM +0100, ASSI via Cygwin-apps wrote: > 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