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


-- 
To UNSUBSCRIBE, email to [email protected] 
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to