zsh-workers
 help / color / mirror / code / Atom feed
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: <zsh-workers@sunsite.auc.dk>
Subject: RE: PATCH: Re: FW: About word splitting in read (Zsh)
Date: Thu, 3 Aug 2000 16:44:08 +0400	[thread overview]
Message-ID: <000a01bffd48$84686510$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <200008031131.NAA12431@beta.informatik.hu-berlin.de>

> >
> > But still. The docs are wrong (backslashes inside the string). Should
> > we change the code or the doc?
>
> This changes the docs.
>

And this tries to clarify it a bit more. The docs are IMHO still misleading -
at least, I get impression that consecuitive whitespaces between words are
eliminated. That is not the case:

bor@itsrm2% read foo
  bar   baz
bor@itsrm2% print %$foo%
%bar   baz%

But my english fails me here :-)

-andrej

Index: Doc/Zsh/builtins.yo
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Zsh/builtins.yo,v
retrieving revision 1.15
diff -u -r1.15 builtins.yo
--- Doc/Zsh/builtins.yo 2000/08/03 11:34:01     1.15
+++ Doc/Zsh/builtins.yo 2000/08/03 12:40:13
@@ -752,7 +752,8 @@
 vindex(IFS, use of)
 item(tt(read) [ tt(-rzpqAclneEt) ] [ tt(-k) [ var(num) ] ] \
 [ tt(-u)var(n) ] [ var(name)[tt(?)var(prompt)] ] [ var(name) ...  ])(
-Read one line and break it into fields using the characters
+Read one line, strip leading and trailing whitespaces contained
+in tt($IFS) and break it into fields using the characters
 in tt($IFS) as separators, except as noted below.
 The first field is assigned to the first var(name), the second field
 to the second var(name), etc., with leftover


  reply	other threads:[~2000-08-03 12:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-03 11:31 Sven Wischnowsky
2000-08-03 12:44 ` Andrej Borsenkow [this message]
2000-08-03 14:31   ` Bart Schaefer
2000-08-03 14:40 Sven Wischnowsky
2000-08-03 14:42 ` Andrej Borsenkow

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000a01bffd48$84686510$21c9ca95@mow.siemens.ru' \
    --to=andrej.borsenkow@mow.siemens.ru \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).