Anyone have any clever, VERY reliable tricks for detecting if the
current shell is bash?
Well, I don't know if it's clever, but how about:
$ if [ "${SHELL//*/bash}" = "bash" ]; then echo y; fi
But better to use the hash-bang and make SURE the shell is Bash.
Dave