Is there a difference in behaviours with respect to the flags passed to the script on the shebang line vs. using the
#!/bin/bash -e # do stuff
#!/bin/bash set -e # do stuff
(The question is not specific to
-e flag but in general for any such flags).
set [flags] is effective only from the point it's set. But are there any other differences in functionality/behaviour?