diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2003-02-13 15:04:14 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2003-02-13 15:04:14 +0000 |
commit | dc91d837e8fdf6228df66a74a6fb8c2395f8baec (patch) | |
tree | b4f495f60882e2383ee93f04d1c79c13883fb6b2 /Completion/Zsh | |
parent | 6d2921542ebf2d912a860c4f32db979f4361d8b6 (diff) | |
download | zsh-dc91d837e8fdf6228df66a74a6fb8c2395f8baec.tar.gz zsh-dc91d837e8fdf6228df66a74a6fb8c2395f8baec.tar.xz zsh-dc91d837e8fdf6228df66a74a6fb8c2395f8baec.zip |
18237: complete -t option to read
Diffstat (limited to 'Completion/Zsh')
-rw-r--r-- | Completion/Zsh/Command/_read | 5 |
1 files changed, 3 insertions, 2 deletions
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]' \ |