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
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
-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