* Re: FW: About word splitting in read (Zsh)
@ 2000-08-01 7:10 Sven Wischnowsky
0 siblings, 0 replies; 4+ messages in thread
From: Sven Wischnowsky @ 2000-08-01 7:10 UTC (permalink / raw)
To: zsh-workers
Andrej Borsenkow wrote:
> 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?
Don't know. Because: the manual isn't telling the whole truth for -r
anyway. It says that a backslash at EOL does not mean line
continuation. In reality, -r makes *every* backslash be kept.
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: FW: About word splitting in read (Zsh)
@ 2000-08-01 8:12 Sven Wischnowsky
0 siblings, 0 replies; 4+ messages in thread
From: Sven Wischnowsky @ 2000-08-01 8:12 UTC (permalink / raw)
To: zsh-workers
Bart Schaefer wrote:
> 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 %
Ouch. I didn't remember that, even though I already used it...
But still. The docs are wrong (backslashes inside the string). Should
we change the code or the doc?
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 4+ 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; 4+ 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] 4+ messages in thread
* 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; 4+ 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] 4+ messages in thread
end of thread, other threads:[~2000-08-01 8:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-01 7:10 FW: About word splitting in read (Zsh) Sven Wischnowsky
-- strict thread matches above, loose matches on Subject: below --
2000-08-01 8:12 Sven Wischnowsky
2000-08-01 5:40 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).