[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: POSIX shell specification insight requested

On Tue, 2 Mar 2004 13:04:43 -0500
Branden Robinson <branden@debian.org> 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.

Do you know of http://www.opengroup.org/onlinepubs/007904975/ ?

I don't know that it's identical to POSIX, but I've been given the
impression that it is.

Reply to: