[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to determine the interpreter



If you want to know if you're running in bash, you can test for the
variable BASH_VERSION.

--------------------------------

if [ ! -z $BASH_VERSION ]; then
   echo "I am running in bash"
   exit
fi

echo "I am running in sh"

--------------------------------

--
Burton Samograd


Reply to: