GOTCHA in Ubuntu - broken shell
Tyson Sawyer
tyson at j3.org
Sat Sep 29 09:44:49 EDT 2007
On 9/28/07, Bill Sconce <sconce at in-spec-inc.com> wrote:
> (And remember to not trust Ubuntu. They don't think things through
> to the consequences. They don't listen, either. See below.)
How about the consequences of using the syntax of one language and
asking the shell/interpreter/compiler of a different one to run it?
Bill, I have to disagree with you on this one.
If you say '/bin/sh' then you should speak '/bin/sh'.
If you say '/usr/bin/python' then you should speak '/usr/bin/python'.
If you are speaking '/bin/bash', then you should say, '/bin/bash'.
Don't use bash syntax in a script that is configured to be run by /bin/sh.
....of course, if dash is failing on correct sh syntax, then Ubuntu
screwed up and the above comments don't apply.
Cheers!
Ty
--
Tyson D Sawyer
I prefer dangerous freedom over peaceful slavery. -- Thomas Jefferson
More information about the gnhlug-discuss
mailing list