Notes
How to use either an argument or a default in a bash script
SHELL=${1-$"/bin/bash"}
is an equivalent to
if [ -z "$1" ]; then
SHELL=$1
else
SHELL="/bin/bash"
fi
more: http://tldp.org/LDP/abs/html/parameter-substitution.html
SHELL=${1-$"/bin/bash"}
is an equivalent to
if [ -z "$1" ]; then
SHELL=$1
else
SHELL="/bin/bash"
fi
more: http://tldp.org/LDP/abs/html/parameter-substitution.html