[plug] Bash syntax error bad substitution

Tomasz Grzegurzko tomasz89 at gmail.com
Thu Dec 6 11:25:12 WST 2007

On Dec 6, 2007 11:12 AM, David Dartnall <darts at dialix.com.au> wrote:
> Mike Holland wrote:
> > David Dartnall wrote:
> >>  A change from #!/bin/sh to #!/bin/bash at the start of the script
> >> fixed the problem
> >
> > So your script claimed to be bourne shell, but really depended on bash
> > features. Not unusual.
> No, /bin/sh previously had a link pointing to /bin/bash which the ubuntu
> update apparently changed to /bin/dash.

dash is 100% POSIX compliant. Any script that uses the features of
bash but uses /bin/sh in their header has not realised this, but it is
a very common problem. There are many differences between bash and the
original sh that people have come to rely upon. If you don't like it,
then reconfigure dash, or complain to the script author that they've
made a mistake.


More information about the plug mailing list