Comment 2 for bug 1793668

Revision history for this message
Andreas Metzler (k-launchpad-downhill-at-eu-org) wrote :

Hello,

tst is a shell script that does specify which interpreter should be used and therefore the system falls back to try /bin/sh.

However the script is using bash extensions ([ "$1" == "" ]) which won't work with *any* sh-type shell. Debian is using dash as /bin/sh and there an error is thrown, Centos is probably using bash.

So this is not a bug but a user error. If you want to use bash-extension you'll need to take care that the script runs under bash by using a correct #!-line.

Closing.