For Ubuntu compatibility, I wrote this, which recalls the script with it's options under bash and returns the same exit code.
if [ `readlink /proc/$$/exe` != "/bin/bash" ];then
  bash $0 $@
  exit $?
fi
echo "Shell: "`readlink /proc/$$/exe`
For Ubuntu compatibility, I wrote this, which recalls the script with it's options under bash and returns the same exit code.
if [ `readlink /proc/$$/exe` != "/bin/bash" ];then
  bash $0 $@
  exit $?
fi
echo "Shell: "`readlink /proc/$$/exe`