On Sun, Nov 05, 2023 at 10:24:43PM +0000, 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 I said holds both with and without it, but the point I was trying to make is definitely much clearer when both examples have `set -e` and the only difference is whether there's an && between the function call and the echo.