Upgrade from Dapper to Edgy

Matthew Flaschen matthew.flaschen at gatech.edu
Sun Feb 18 20:36:06 UTC 2007


Rick Greep wrote:
> Matthew,
> 
> 	Yes, that changes the shell to bash but I was trying to convert my existing 
> scripts to run under dash. I think I have finally realized that trying to run 
> a Dash script in a Bash shell is just damn annoying. 

You shouldn't be trying to do that.  Running a sh script in either shell
works, though.

> 
> 	It is not the POSIX compatibility which is the problem, Dash just breaks 
> things. Like the lack of shell variables like $HOSTNAME and the breaking of 
> echo.

I believe the behavior you want is not POSIX standard.  /bin/sh is
supposed to be POSIX sh.

 I don't understand why the decision was made to change the default
> shell but it seems pretty half baked.

Because dash runs much faster non-interactively.

> Bash has been the linux "defacto" 
> standard for years. If I want to run dash (not likely) I'll change the 
> shebang to #!/bin/dash.

That's the cost of relying on de facto standards.

Anyway, it looks like you've solved your problem.  In the future, you
should write bash specific shells with the right shebang.

Matthew Flaschen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070218/a2454328/attachment.sig>


More information about the ubuntu-users mailing list