is it valid to set the not in the first line of a script with #!
Posted on 2012-12-28
I am a very important and yet again mixed envirment.
each machine has one of "bash or ksh"
If there is bash I want to use it, otherwise I can use ksh. I never ever want to use "sh" because there are lines in my scripts that will not run with an oversimplistic shell
Here is my solution and I need to know if people forsee a a problem with selecting your shell after the script starts.
## set environment so you never get /bin/sh !!!
if [[ -e "/bin/bash" ]]; then
Oh, I am in a redhat, solaris, aix envirement with either bash OR ksh