Re: error with ' in command substitution

2007-11-07 Thread Chet Ramey
> At least when a non-compliance is spotted, it's fixed in the > next release. And this one will be, too. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Live Strong. Chet Ramey, ITS, CWRU[EMAIL PROTECTED]http://tiswww.tis.case.edu/~c

Re: error with ' in command substitution

2007-11-03 Thread Sven Mascheck
Stephane Chazelas wrote: >> According to Scott Moser on 10/30/2007 7:12 AM: >>> x=$(cat <<"EOF" >>> bad' syntax >>> EOF > Note that it's the same as for > > $( > case a in >a) ... > esac > ) These are already on the todo list. See <[EMAIL PROTECTED]>. > I thought the POSIX > case a i

Re: error with ' in command substitution

2007-10-31 Thread Stephane Chazelas
On Tue, Oct 30, 2007 at 06:58:10PM -0600, Eric Blake wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > According to Scott Moser on 10/30/2007 7:12 AM: > > #= test.sh = > > x=$(cat <<"EOF" > > bad' syntax > > EOF > > ) > > > > > So, I'm not 100% certain what the "correct" behavi

Re: error with ' in command substitution

2007-10-30 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Scott Moser on 10/30/2007 7:12 AM: > #= test.sh = > x=$(cat <<"EOF" > bad' syntax > EOF > ) > > So, I'm not 100% certain what the "correct" behavior is, but it > certainly seems like this should work. POSIX requires this to work

Re: error with ' in command substitution

2007-10-30 Thread Matthew Woehlke
Scott Moser wrote: Description: #= test.sh = x=$(cat <<"EOF" bad' syntax EOF ) #=== end test.sh === [snip] So, I'm not 100% certain what the "correct" behavior is, but it certainly seems like this should work. Given that: cat << EOF bad' syntax EOF ...is correct syntax, IMO the same

error with ' in command substitution

2007-10-30 Thread Scott Moser
Configuration Information [Automatically generated, do not change]: Machine: i486 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='b