diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2003-02-17 10:07:53 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2003-02-17 10:07:53 +0000 |
commit | 5164c6a3c92bf4e696709947ae991cdf534d20a0 (patch) | |
tree | f1ddd7b3440c79c2dbbb19f300626e62d7654a01 /Doc/Zsh | |
parent | 06d25a35b0ee33b6cabe740321310ae0de61144d (diff) | |
download | zsh-5164c6a3c92bf4e696709947ae991cdf534d20a0.tar.gz zsh-5164c6a3c92bf4e696709947ae991cdf534d20a0.tar.xz zsh-5164c6a3c92bf4e696709947ae991cdf534d20a0.zip |
18242: add -d option to read for specifying delimiter to terminate input
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/builtins.yo | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo index 333fec64a..899bc96d8 100644 --- a/Doc/Zsh/builtins.yo +++ b/Doc/Zsh/builtins.yo @@ -824,8 +824,8 @@ contain symbolic links. alias(r)(fc -e -) findex(read) vindex(IFS, use of) -ifzman(xitem(tt(read) [ tt(-rszpqAclneE) ] [ tt(-t) [ var(num) ] ] [ tt(-k) [ var(num) ] ])) -item(ifnzman(tt(read) [ tt(-rszpqAclneE) ] [ tt(-t) [ var(num) ] ] [ tt(-k) [ var(num) ] ]) [ tt(-u)var(n) ] [ var(name)[tt(?)var(prompt)] ] [ var(name) ... ])( +ifzman(xitem(tt(read) [ tt(-rszpqAclneE) ] [ tt(-t) [ var(num) ] ] [ tt(-k) [ var(num) ] ] [ tt(-d) var(delim) ])) +item(ifnzman(tt(read) [ tt(-rszpqAclneE) ] [ tt(-t) [ var(num) ] ] [ tt(-k) [ var(num) ] ] [ tt(-d) var(delim) ]) [ tt(-u)var(n) ] [ var(name)[tt(?)var(prompt)] ] [ var(name) ... ])( vindex(REPLY, use of) vindex(reply, use of) Read one line and break it into fields using the characters @@ -899,6 +899,10 @@ Input is read from file descriptor var(n). item(tt(-p))( Input is read from the coprocess. ) +item(tt(-d) var(delim))( +Input is terminated by the first character of var(delim) instead of +by newline. +) item(tt(-t) [ var(num) ])( Test if input is available before attempting to read. If var(num) is present, it must begin with a digit and will be evaluated |