[Slackbuilds-users] Patch proposal to remove bashisms from some scripts

R. Andrew Bailey bailey at akamai.com
Mon Nov 1 12:27:21 UTC 2010


On 01/11/10 08:00 -0400, David Spencer wrote:
>>  Don't you think its a lot easier for you to remember to exec these
>>  scripts with bash, than to get everybody else to change their scripts
>>  to work with your symlink? :)
>
>Technical measures are always better than "remembering". That's what
>"#!/bin/bash" is for.
>
>What follows is just a personal opinion. I try to write my scripts to
>the highest standards. If I start with #!/bin/sh, and then I write a
>bashism, then #!/bin/sh was a lie, and when someone points that out, I
>am embarassed and grateful, especially when the fix is really, really
>easy.  I'm not "everybody", but then, not everybody's script starts
>with a lie.  Just three of mine :-/

So changing the shbang lines to read #!/bin/bash would suffice, no?

  .andy


>
>-D.
>_______________________________________________
>SlackBuilds-users mailing list
>SlackBuilds-users at slackbuilds.org
>http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
>Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
>FAQ - http://slackbuilds.org/faq/


More information about the SlackBuilds-users mailing list