linux why doesn't changing directory in a script change my directory in command when running it code example Example: bash change to script directory cd "$(dirname "${BASH_SOURCE[0]}")"