Upgrade from Dapper to Edgy

Rick Greep RickGreep at cti-consulting.com
Sun Feb 18 19:54:54 UTC 2007


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. 

	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 don't understand why the decision was made to change the default 
shell but it seems pretty half baked. 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.


Matthew Flaschen wrote:
> Rick Greep wrote:
> > 	Well it looks like I stumbled on a hornets
> > nest. "https://launchpad.net/ubuntu/+source/dash/+bug/61463".
> >
> > 	After spending a few of hours trying to get dash to work, I've found a
> > couple of annoyances it just doesn't seem to handle. You cannot use
> > escapes in the echo command ( -e "\t\n"), and variables like $HOSTNAME
> > are not valued under dash.
> >
> > 	I know I can use `uname -n` instead of $HOSTNAME and maybe my echo
> > commands don't have to be that pretty, but it is a bit annoying to have
> > to change my scripts to accommodate this upgrade.
>
> All you have to change is the #!, to:
>
> #!/bin/bash
>
> Matthew Flaschen

-- 
Rick Greep, Core Technologies, Inc.
RickGreep at cti-consulting.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070218/593cc546/attachment.sig>


More information about the ubuntu-users mailing list