Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: here document within a switch fails to parse.



On Jan 8, 2021, at 10:27 AM, Karsten Borgwaldt <kb@xxxxxxxxxx> wrote:

Some expressions in heredocs will be evaluated. Not a good idea for comments:

:<<EOC
$(print something > /dev/stderr)
EOC

Not if some or all of the delimiter specification is quoted (as Ray is doing, in response to a suggestion in an earlier thread):

: <<\EOC
$(print something > /dev/stderr)
EOC

vq
Sent from my iPhone


Messages sorted by: Reverse Date, Date, Thread, Author