Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: About word splitting in read
- X-seq: zsh-workers 12048
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: RE: About word splitting in read
- Date: Fri, 23 Jun 2000 12:41:38 +0200 (MET DST)
- In-reply-to: "Andrej Borsenkow"'s message of Fri, 23 Jun 2000 14:37:27 +0400
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Andrej Borsenkow wrote:
> >
> > 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?
Try `print -r $foo'.
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author