Quantcast
Channel: Why does `source foo && true` exit the script in bash? - Unix & Linux Stack Exchange
Browsing latest articles
Browse All 2 View Live

Answer by schily for Why does `source foo && true` exit the script in bash?

source is an alias to the dot . command and the dot command is a so called special command where POSIX describes that these commands exit the whole non-interactive shell in case that an error occurs....

View Article



Why does `source foo && true` exit the script in bash?

So, I've read this: Bash script with `set -e` doesn't stop on `... && ...` command It makes sense. So now, the question: Test A: $ cat ./test.sh set -ex source foo && true echo...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images