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

POSIX shell specification insight requested

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.

G. Branden Robinson                |       If atheism is a religion, then
Debian GNU/Linux                   |       health is a disease.
branden@debian.org                 |       -- Clark Adams
http://people.debian.org/~branden/ |

Attachment: signature.asc
Description: Digital signature

Reply to: