Hello, This behaviour is caused by the fact dash (which is the default /bin/sh in ubuntu) does not accept any parameter for the 'type' command, thus exiting with an error when trying to use type -p If you want this to work, you should explicitely use /bin/bash in your shebang
Thanks for report ** Changed in: Ubuntu Status: Unconfirmed => Rejected -- bash command type -p doesn't evaluate correctly in shell scripts https://launchpad.net/bugs/71008 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs