Re: Shell script one-liner
- From: Tony Houghton <h@xxxxxxxxxxx>
- Date: Fri, 6 Mar 2009 21:06:21 +0000
On Fri, 6 Mar 2009 20:07:00 +0000
Ian Rawlings <news06@xxxxxxxxxxxxx> wrote:
On 2009-03-06, Tony Houghton <h@xxxxxxxxxxx> wrote:
Yes, but if you're not careful you can have some of your scripts break
when Ubuntu or Debian change the default non-interactive shell to dash,
then again I don't think that's even backwards compatible with vanilla
Bourne, let alone bash (echo -e).
My scripts are for my consumption, I'd never dream of foisting my
rubbish on the rest of the world! Sounds like Ubuntu/Debian are doing
something daft if they do indeed change their shell to an uncommon
one. I'm a gentoo user though, not sure what they're doing.
I think Ubuntu have already done it, which is daft, AFAIK Debian are
thinking of switching over, hopefully not until issues with dash are
fixed. As well as the echo -e problem [1] I've also had another problem
I can't remember properly, something to do with IFS.
[1] (starting with bash):
~ $ echo '\tHello'
\tHello
~ $ echo -e '\tHello'
Hello
~ $ dash
$ echo '\tHello'
Hello
$ echo -e '\tHello'
-e Hello
$
--
TH * http://www.realh.co.uk
.
- References:
- Shell script one-liner
- From: Theo Markettos
- Re: Shell script one-liner
- From: Ian Rawlings
- Re: Shell script one-liner
- From: John Taylor
- Re: Shell script one-liner
- From: Ian Rawlings
- Re: Shell script one-liner
- From: Tony Houghton
- Re: Shell script one-liner
- From: Ian Rawlings
- Re: Shell script one-liner
- From: Tony Houghton
- Re: Shell script one-liner
- From: Ian Rawlings
- Re: Shell script one-liner
- From: Tony Houghton
- Re: Shell script one-liner
- From: Ian Rawlings
- Shell script one-liner
- Prev by Date: Re: Shell script one-liner
- Next by Date: Re: reasons not to try a dual-boot system ..
- Previous by thread: Re: Shell script one-liner
- Next by thread: Re: Shell script one-liner
- Index(es):
Relevant Pages
|