Re: Question about variables and for loop

2006-03-19 Thread Alexander Elgert
Paul Jarc schrieb am 18.03.2006 um 20:44:17 (-0500): > Bob <[EMAIL PROTECTED]> wrote: > > XXX='a "b c" d' > > for x in $XXX ; do > > echo $x > > done > > XXX='a "b c" d' > eval "set $XXX" > for x in "$@" ; do > echo $x > done > > If the first element in XXX might sta

Re: bash shell parser bug

2006-03-19 Thread Chet Ramey
laura fairhead wrote: > I just found a bug that affects a number of shells (pressumably the > code there is from the same roots) in the parser. > > The following code; > > l='eval "$l"' > eval "$l" > > Which sets off an infinite recursion on 'eval', should result in an > infinite loop to be te

Re: echo "enhancement" leads to confused legacy script tools...

2006-03-19 Thread Paul Eggert
Henrik Nordstrom <[EMAIL PROTECTED]> writes: > sön 2006-03-19 klockan 12:57 -0800 skrev Paul Eggert: > >> Autoconf deals with shells that do not conform to XSI, and where the >> results are implementation-defined if there's a backslash anywhere in >> the string, so to some extent this point is moo