Re: broken shell script with dash

2011-04-06 Thread Sven Joachim
On 2011-04-06 14:33 +0200, Michael P. Soulier wrote: > On 28/03/11 Miles Fidelman said: > >> of course you could just run your script under bash > > And I am, but why is dash claiming to be a posix shell by being /bin/sh? Brace expansion is not Posix, so dash does not support it. For other possi

Re: broken shell script with dash

2011-04-06 Thread Michael P. Soulier
On 28/03/11 Boyd Stephen Smith Jr. said: > No, brace expansion is not required by any (published[1]) edition of POSIX or > the Single UNIX Specification. > > For this case though, you can generally use (cat /etc/aliases.[12] > > /etc/aliases). > > [1] I'm not sure about the work-in-progress SU

Re: broken shell script with dash

2011-04-06 Thread Michael P. Soulier
On 28/03/11 Miles Fidelman said: > of course you could just run your script under bash And I am, but why is dash claiming to be a posix shell by being /bin/sh? Mike signature.asc Description: Digital signature

Re: broken shell script with dash

2011-03-29 Thread Thilo Six
Ron Johnson wrote the following on 28.03.2011 21:48 -- -- > Since that's 8/10 of 1% of 1% of a 640GB drive, I'm not impressed with > your argument. Then ignore it. Thanks. -- bye Thilo 4096R/0xC70B1A8F 721B 1BA0 095C 1ABA 3FC6 7C18 89A4 A2A0 C70B 1A8F -- To UNSUBSCRIBE, email to debian

Re: broken shell script with dash

2011-03-28 Thread Ron Johnson
On 03/28/2011 01:41 PM, Thilo Six wrote: Andrew McGlashan wrote the following on 28.03.2011 19:05 [snip] Why, we are not running on zx80, trs-80, apple ][, vic20 or anything like that these days; disk is cheap and a few extra MBs isn't going to hurt anything today. The WHOLE package is worth h

Re: broken shell script with dash

2011-03-28 Thread Thilo Six
Andrew McGlashan wrote the following on 28.03.2011 19:05 > Hi, > > Thilo Six wrote: >> Michael P. Soulier wrote the following on 28.03.2011 16:10 >> >>> cat /etc/aliases.{1,2} > /etc/aliases >> >> $ ./checkbashisms fooo.sh >> possible bashism in fooo.sh line 2 (brace expansion): >> cat /etc/alias

Re: broken shell script with dash

2011-03-28 Thread Andrew McGlashan
Hi, Thilo Six wrote: Michael P. Soulier wrote the following on 28.03.2011 16:10 cat /etc/aliases.{1,2} > /etc/aliases $ ./checkbashisms fooo.sh possible bashism in fooo.sh line 2 (brace expansion): cat /etc/aliases.{1,2} > /etc/aliases checkbashisms is in devscripts but i would not advocate

Re: broken shell script with dash

2011-03-28 Thread Thilo Six
Michael P. Soulier wrote the following on 28.03.2011 16:10 > cat /etc/aliases.{1,2} > /etc/aliases $ ./checkbashisms fooo.sh possible bashism in fooo.sh line 2 (brace expansion): cat /etc/aliases.{1,2} > /etc/aliases checkbashisms is in devscripts but i would not advocate to install the hole bea

Re: broken shell script with dash

2011-03-28 Thread Boyd Stephen Smith Jr.
On 2011-03-28 09:10:07 Michael P. Soulier wrote: >Is this syntax not supported by posix? > >cat /etc/aliases.{1,2} > /etc/aliases No, brace expansion is not required by any (published[1]) edition of POSIX or the Single UNIX Specification. For this case though, you can generally use (cat /etc/ali

Re: broken shell script with dash

2011-03-28 Thread Miles Fidelman
Michael P. Soulier wrote: Hi, Is this syntax not supported by posix? cat /etc/aliases.{1,2}> /etc/aliases Since I upgraded to squeeze and picked up dash this part of my script broke. of course you could just run your script under bash -- In theory, there is no difference between theory

broken shell script with dash

2011-03-28 Thread Michael P. Soulier
Hi, Is this syntax not supported by posix? cat /etc/aliases.{1,2} > /etc/aliases Since I upgraded to squeeze and picked up dash this part of my script broke. Thanks, Mike -- Michael P. Soulier "Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a