* FW: About word splitting in read (Zsh)
@ 2000-08-01 5:40 Andrej Borsenkow
2000-08-01 6:49 ` Andrej Borsenkow
0 siblings, 1 reply; 3+ messages in thread
From: Andrej Borsenkow @ 2000-08-01 5:40 UTC (permalink / raw)
To: ZSH workers mailing list
In (almost latest) CVS:
bor@itsrm2% read -r foo
qwert yuiop !
bor@itsrm2% print -r $foo
qwert yuiop !
So, the question is - should we fix -r or introduce new option?
-andrej
> -----Original Message-----
> From: bjeick0@sweb.uky.edu [mailto:bjeick0@sweb.uky.edu]
> Sent: Tuesday, August 01, 2000 6:04 AM
> To: Andrej.Borsenkow@mow.siemens.ru
> Subject: About word splitting in read (Zsh)
>
>
> Sorry to bother you, but I'm not sure how to use Mailing-Lists. I found
> a message of yours while looking through a Zsh archive on the web.
>
> I wanted a version of read which didn't perform word splitting, but
> `read -r'
> still does one thing I'm trying to prevent: it removes leading whitespace.
> I'm hoping to preserve all whitespace (a true raw mode). Is there
> any way to
> accomplish this (with `read' or otherwise)?
>
>
> Bobby Eickhoff
> <bjeick0@sweb.uky.edu>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: About word splitting in read (Zsh)
2000-08-01 5:40 FW: About word splitting in read (Zsh) Andrej Borsenkow
@ 2000-08-01 6:49 ` Andrej Borsenkow
2000-08-01 7:15 ` FW: " Bart Schaefer
0 siblings, 1 reply; 3+ messages in thread
From: Andrej Borsenkow @ 2000-08-01 6:49 UTC (permalink / raw)
To: ZSH workers mailing list
> > Sorry to bother you, but I'm not sure how to use Mailing-Lists. I found
> > a message of yours while looking through a Zsh archive on the web.
> >
> > I wanted a version of read which didn't perform word splitting, but
> > `read -r'
> > still does one thing I'm trying to prevent: it removes leading whitespace.
> > I'm hoping to preserve all whitespace (a true raw mode).
And trailing spaces as well.
-andrej
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: FW: About word splitting in read (Zsh)
2000-08-01 6:49 ` Andrej Borsenkow
@ 2000-08-01 7:15 ` Bart Schaefer
0 siblings, 0 replies; 3+ messages in thread
From: Bart Schaefer @ 2000-08-01 7:15 UTC (permalink / raw)
To: Andrej Borsenkow, ZSH workers mailing list
On Aug 1, 9:40am, Andrej Borsenkow wrote:
} Subject: FW: About word splitting in read (Zsh)
}
} In (almost latest) CVS:
}
} bor@itsrm2% read -r foo
} qwert yuiop !
} bor@itsrm2% print -r $foo
} qwert yuiop !
}
} So, the question is - should we fix -r or introduce new option?
Neither.
zagzig[271] IFS=$'\n' read -r line <<<' this has many spaces '
zagzig[272] echo %$line%
% this has many spaces %
On Aug 1, 10:49am, Andrej Borsenkow wrote:
}
} And trailing spaces as well.
Uh-huh.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-08-01 7:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-01 5:40 FW: About word splitting in read (Zsh) Andrej Borsenkow
2000-08-01 6:49 ` Andrej Borsenkow
2000-08-01 7:15 ` FW: " Bart Schaefer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).