summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-07-24 18:35:49 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-07-24 18:35:49 +0000
commit72f0b14a0448ecf50935a1f6c90337c3d1c969af (patch)
treebe65fa2ba994792e2f5a4764b3fbe71b91af7778 /Doc/Zsh
parent2c8142351681124e8ce5f8f44a8539ae4e7bbe33 (diff)
downloadzsh-72f0b14a0448ecf50935a1f6c90337c3d1c969af.tar.gz
zsh-72f0b14a0448ecf50935a1f6c90337c3d1c969af.tar.xz
zsh-72f0b14a0448ecf50935a1f6c90337c3d1c969af.zip
27188: improve read -q by using read -k code
Diffstat (limited to 'Doc/Zsh')
-rw-r--r--Doc/Zsh/builtins.yo7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo
index 4311e871e..6d1fffabf 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -1113,9 +1113,10 @@ item(tt(-q))(
 Read only one character from the terminal and set var(name) to
 `tt(y)' if this character was `tt(y)' or `tt(Y)' and to `tt(n)' otherwise.
 With this flag set the return status is zero only if the character was
-`tt(y)' or `tt(Y)'.  Note that this always reads from the terminal, even
-if used with the tt(-p) or tt(-u) or tt(-z) flags or with redirected input.
-This option may also be used within zle widgets.
+`tt(y)' or `tt(Y)'.  This option may be used with a timeout; if
+the read times out, or encounters end of file, status 2 is returned.
+Input is read from the terminal unless one of tt(-u)
+or tt(-p) is present.  This option may also be used within zle widgets.
 )
 item(tt(-k) [ var(num) ])(
 Read only one (or var(num)) characters.  All are assigned to the first