From dc91d837e8fdf6228df66a74a6fb8c2395f8baec Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 13 Feb 2003 15:04:14 +0000 Subject: 18237: complete -t option to read --- Completion/Zsh/Command/_read | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Completion/Zsh') diff --git a/Completion/Zsh/Command/_read b/Completion/Zsh/Command/_read index d94e8b65f..46fdb2de6 100644 --- a/Completion/Zsh/Command/_read +++ b/Completion/Zsh/Command/_read @@ -9,8 +9,9 @@ local pflag _arguments -s -A "-*" -S \ '-r[raw mode]' \ '(-p -k -s -u -z)-q[read y or n character from terminal]' \ - '(-q)-k+[specify number of characters to read]:number of characters' \ - '(-q -s -u -p)-z[read entry from editor buffer stack]' \ + '(-q)-k+[specify number of characters to read]:: :_guard "[0-9]#" "number of characters"' \ + '(-q -z)-t+[test if input is available before reading]:: :_guard "[0-9.]#" "timeout (seconds)"' \ + '(-q -s -u -p -t)-z[read entry from editor buffer stack]' \ '(-E)-e[input read is echoed and not assigned]' \ '(-e)-E[input read is echoed]' \ '(-q -z -p)-s[suppress terminal echoing]' \ -- cgit 1.4.1