Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Here-docs and $(...)
- X-seq: zsh-workers 26999
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Here-docs and $(...)
- Date: Wed, 27 May 2009 08:54:21 -0700
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Discussion on the austin-group (POSIX) list indicates that this:
echo $(
cat <<\)
hello
)
)
Should be parsed as a here-document up through the second close paren, so
that the third close-paren matches the open paren to end the substitution.
Zsh gets this wrong, ending the command substitution at the second close.
There's probably no easy fix for this, as the here-document parser is not
invoked during scanning of the command substitution.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author