topical media & game development
basic-shell-03-check-csh.sh / sh
echo -n "Checking for a C shell: "
if (csh -c exit > /dev/null 2> /dev/null ) then
echo "csh found."
elif (tcsh -c exit > /dev/null 2> /dev/null ) then
echo "tcsh found, which works like csh."
else
echo "csh NOT found."
fi
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.