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

Re: Here-doc glitch, and null commands



On Thu, 27 Feb 1997, Thorsten Meinecke wrote:

> Hello there,
> this is as of zsh-3.0.3-test4.
> 
> Here-documents inside command/process substitution won't behave
> when they contain an unmatched single or double quote.  Complains
> about "parse error near `$(<<__END__'.", and when entered inter-
> actively, one is caught in `cmdsubst>'.  Example:
> 
> echo $(<<__END__
> Doesn't work.
> __END__)
> 

(Almost) the same in 3.1.1 (I doubt, if $(<< ...) is legal):

[1]bor@itsrm1:~%> echo $(
cmdsubst> cat << EOF
cmdsubst> doesn't work
cmdsubst> EOF
cmdsubst> )
cmdsubst>

greetings

------------------------------------------------------------------
Andrej Borsenkow 		Fax:   +7 (095) 252 01 05
SNI ITS Moscow			Tel:   +7 (095) 252 13 88

NERV:  borsenkow.msk		E-Mail: borsenkow.msk@xxxxxx
-------------------------------------------------------------------------





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