Can you guys post where your "sh" is pointing to please. Seems mine isn't correct if going by the posts on here.
|
It depends on what Distribution you are using, most /bin/sh should refer to bash, however for debian based distributions it should be /bin/dash (A debian specific shell, I believe based on ash)
|
Quote:
|
So does that mean that Ubuntu is set up incorrectly?
Shouldn't it default to the bash shell? |
Quote:
@OP: The situation you have is "correct" for Debian based systems. |
Yeah thought changing it would be a bad idea!!
So any ideas why I get errors and some dont? Seems to depend on what distro they are using now doesnt it?? |
Quote:
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 Code:
/bin/bash -x Code:
/bin/dash -x |
hmm... OP used #!/bin/bash. I wonder why that didn't take effect.
|
Quote:
|
Quote:
hey, this is the second new thing i have learned today. Thanks. |
Well looks like my little issue has become into a lesson. I shall make a note of this.
|
All times are GMT -5. The time now is 02:04 PM. |