On 10/10/06, mwoehlke <[EMAIL PROTECTED]> wrote:
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 _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash