Re: POSIX shell specification insight requested
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.
> 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.
my dash 0.4.21 likes it written this way:
Foo bar baz quux.
-----[ Domenico Andreoli, aka cavok
---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50