Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: About word splitting in read
- X-seq: zsh-workers 12047
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "Sven Wischnowsky" <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>, <zsh-workers@xxxxxxxxxxxxxx>
- Subject: RE: About word splitting in read
- Date: Fri, 23 Jun 2000 14:37:27 +0400
- Importance: Normal
- In-reply-to: <200006231022.MAA06581@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
>
> Errr... in what way does `read -r foo' not do what you want?
>
Sorry, I was (completely) wrong. The actual problem is not field
splitting, but rather backslash elimination.
About 'read -r' - manual states, it just does not treat final backslash
as line continuation. Look:
bor@itsrm2% read -r foo
a b \
bor@itsrm2% print $foo
a b \
but
bor@itsrm2% read -r foo
q\ g\ b
bor@itsrm2% print $foo
q g b
bor@itsrm2% read -r foo
q\ g\ b \
bor@itsrm2% print $foo
q g b \
Hmm ... is it a bug?
-andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author