On Tue, Mar 02, 2004 at 01:04:43PM -0500, Branden Robinson wrote: > Is the following construction POSIXly correct? > > foo=$(cat <<EOF > Foo bar baz quux. > EOF) > > ash (and dash, which is derived from ash) choke on this, and seem to > ignore everything on the same line as, but after, the here-document > terminator word. > > bash (--posix) and (pd)ksh have no problem with it. > > I would be most grateful if someone access to the POSIX spec could > provide some insight into this. Thanks for all replies, guys. I have fixed the corresponding bug in the xfree86 maintainer scripts. -- G. Branden Robinson | It's like I have a shotgun in my Debian GNU/Linux | mouth, I've got my finger on the firstname.lastname@example.org | trigger, and I like the taste of http://people.debian.org/~branden/ | the gunmetal. -- Robert Downey, Jr.
Description: Digital signature