Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: (2): Bug#255788: $'' does not work after <<<
- X-seq: zsh-workers 20117
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: PATCH: (2): Bug#255788: $'' does not work after <<<
- Date: Wed, 30 Jun 2004 11:00:07 +0100
- Cc: 255788-forwarded@xxxxxxxxxxxxxxx
- In-reply-to: "Bart Schaefer"'s message of "Mon, 28 Jun 2004 10:26:31 PDT." <Pine.LNX.4.60.0406281022010.19831@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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