bash test or code example
Example 1: bash or
if [ "$1" = "a.txt" ] || [ "$2" = "c.txt" ]; then
# do smt...
fi
Example 2: bash test
To print out the version information for bash, use bash --version . Show activity on this post. When running bash (e.g. from gnome-terminal ) you can check value of BASH_VERSION environment variable. If the value is empty, you are not running bash .