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

Re: PATCH: (2): Bug#255788: $'' does not work after <<<



I've finally plucked up my courage for another round...

Bart Schaefer wrote:
> On Mon, 28 Jun 2004, Peter Stephenson wrote:
> 
> > Grud.  I can easily fix this.  I will then commit it without asking, in
> > case there are yet more problems...
> 
> Well, only kinda.  See what happens with unbalanced backticks:
> 
> schaefer<501> cat <<`echo `foo `bar
> bquote> `
> bquote> `
> bquote> `
> bquote> 
> 
> The only way to get out of this is to interrupt the shell.

Hmmm... are you sure?  After the patch I get

% cat <<`echo `foo `bar
bquote> `
heredoc> 

which is what I expect.

At this point, there's no way of finishing the here-document because it
parses line by line and can't match the newline.  This is common to all
forms of quoting.  But that's not what was worrying you, by the looks of
it.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



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