Bash Shell script problem after upgrade

Nils Kassube kassube at gmx.net
Mon Jan 3 21:06:42 UTC 2011


Markus Schönhaber wrote:
> 03.01.2011 18:08, Nils Kassube:
> > Not sure if these two lines are the only problem but at least the
> > sequence is wrong. The "#!/bin/bash" line should be the first one
> > to select bash instead of sh. IIRC, in 8.04 /bin/sh was still
> > linked to /bin/bash and therefore your script used bash because it
> > was the default anyway. In later Ubuntu versions /bin/sh is linked
> > to /bin/dash which doesn't know the bash extensions.
> 
> No, sh is dash by default on Hardy. It is this way since Edgy:

Thanks for clarifying - obviously I remembered it wrong. I was only 
quite sure that the change from bash to dash was a long time ago.

> At least I don't see any problem with the OP's shell script -
> regardless whether I feed it to dash or bash.

And we have already seen from another mail that it was a permissions 
problem.


Nils




More information about the ubuntu-users mailing list