↧
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 ArticleWhy 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