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

RE: About word splitting in read



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