#!/bin/sh
# findbash: Locate the GNU Bourne-Again SHell.
#
# Where are we looking for bash?  Put our favorite choice last
# Also start with a shell known to be good
BASH_LOCATIONS="/bin/sh /afs/sipb/project/bash/bash /usr/local/bin/bash /usr/bin/bash /bin/bash"
BASH_FOUND=""
# SIPB is lame.  But we knew that.
# (The bit of hacking to make bash work has been removed, but the comment
#  remains nevertheless.)
for i in $BASH_LOCATIONS; do
#	echo Checking $i...
	if [ -f $i ]; then
		BASH_FOUND=$i
#		echo "  $i is available"
	fi
done
echo $BASH_FOUND
