Comment 68 for bug 61463

Revision history for this message
sparr (sparr0) wrote : Re: [Bug 61463] Re: Script that are using bash could be broken with the new symlink

I could maybe see patching dash to die with an error "This script
contains invalid syntax, try running it with /bin/bash instead of
/bin/sh" when it encounters one of various known bashisms like echo
-e.

On 2/17/07, nemti <email address hidden> wrote:
> No matter how many script devs you complain to, there is _always_ going
> to be a script that contains bashisms. If /bin/sh _absolutely_ has to
> point to dash, instead of refusing to run scripts with bashisms, why not
> do something constructive like scanning the script for bashisms, and
> then running it in bash? Or perhaps even patching dash to do something
> useful with bashisms when it comes across them, like issuing a warning,
> instead of just dying for reasons unknown to the user?
>
> --
> Script that are using bash could be broken with the new symlink
> https://launchpad.net/bugs/61463
>