Originally Posted by fusion1275
So any ideas why I get errors and some dont? Seems to depend on what distro they are using now doesnt it??
For some people, sh is a link to /bin/bash and for the debianites its /bin/dash.
Dash is a debian-developed shell which is being used where the features of bash aren't needed, and speed and simplicity are. There's been warnings for a while that scripts with bashims need a /bin/bash shebang, not a /bin/sh.
So the difference is down to the fact that, even though they're invoking them the same way, some people are running
, and others are running
, and these are different shells.