From 5164c6a3c92bf4e696709947ae991cdf534d20a0 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Mon, 17 Feb 2003 10:07:53 +0000 Subject: 18242: add -d option to read for specifying delimiter to terminate input --- Doc/Zsh/builtins.yo | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Doc') 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 -- cgit 1.4.1