[Geeks] bash/dash/sh mess

Steve M. Robbins steve at sumost.ca
Sat Apr 5 17:16:50 EDT 2008


Hey Alex,

On Sat, Apr 05, 2008 at 04:09:07PM -0400, Alex Zijdenbos wrote:

> where the suggestions are to either fix #!/bin/sh scripts ot be POSIX
> compliant, or to change them to use #!/bin/bash, or to  'sudo
> dpkg-reconfigure dash' to change the symlink (which appears to have
> happened on the BIC systems).
> 
> Any thoughts/suggestions? Do a global search-and-replace through the
> MINC codebase replacing #!/bin/sh to #!/bin/bash? Or fix the non-POSIX
> stuff in them?

If you use #!/bin/bash, it will work on most linux machines, but may
fail on other unix machines that traditionally don't have bash in
/bin.  

Long-term, fixing non-POSIXness is probably best though painful.  In
the short term, I'd reconfigure the /bin/sh symlink rather than using
#!/bin/bash.

-Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www2.bic.mni.mcgill.ca/pipermail/geeks/attachments/20080405/d5dacdce/attachment.pgp 


More information about the Geeks mailing list