What does the
eu mean after
#!/bin/bash -eu at the top of a bash script?
Normally I begin my bash scripts with this hashbang/shebang:
but I just came across one with
and I have no idea why there is a
-eu there. Reading the
man bash pages doesn't seem to help me, but maybe I'm overlooking something.
Not a duplicate:
This is not a duplicate of Correct behavior of EXIT and ERR traps when using `set -eu`.
Quoting @ilkkachu in the comments below this question, directly addressing this:
...how -e and -u work with regard to traps or anything else is completely unrelated to how they and other single-character options can be given on the command line.
I agree with that. These are separate questions and answers with differing motivations behind them. That question is so different I would never even think to click on it by looking at its title OR its description when trying to understand the answer to my own question here, and the answers are vastly different too.