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 20113
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: PATCH: (2): Bug#255788: $'' does not work after <<<
- Date: Mon, 28 Jun 2004 08:14:09 -0700 (PDT)
- Cc: 255788-forwarded@xxxxxxxxxxxxxxx
- In-reply-to: <200406281139.i5SBdtc5013590@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200406281139.i5SBdtc5013590@xxxxxxxxxxxxxx>
- Reply-to: zsh-workers@xxxxxxxxxx
On Mon, 28 Jun 2004, Peter Stephenson wrote:
> " unchanged; ` now does the same thing as double quotes, which means \\
> gets turned into \, etc.; backquotes don't do command substitution ---
> they never did, but they wouldn't have been stripped properly.
Er, stripped? They shouldn't get stripped, at least not when used as the
marker for a here-doc. My example from previous mail showed that:
[schaefer]$ cat <<`echo foo`
> bar
> foo
> echo foo
> `echo foo`
bar
foo
echo foo
[schaefer]$
(We could argue that bash is wrong in this case, but ...)
(I admit I haven't tried this second patch yet, so sorry if I've jumped to
the wrong conclusion here.)
> Here strings: [...] This should be more consistent, doing zsh's standard
> forced single-word substitution (make sure arrays don't turn it into
> multiple words, etc.). I still don't see any reason why this would be
> the wrong thing to do.
This is fine as long as it doesn't change the behavior of here-documents.
Sorry if I inadvertently implied otherwise at any point.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author