Skip to main content
1 of 2
GET
  • 3
  • 1

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`
GET
  • 3
  • 1