From 3f588ef05f56031de452e940b0f4b4fd5453b4ed Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Tue, 18 Feb 2003 15:53:19 +0000 Subject: merge changes from 4.1 --- Completion/Zsh/Command/_read | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Completion/Zsh/Command/_read (limited to 'Completion/Zsh/Command') diff --git a/Completion/Zsh/Command/_read b/Completion/Zsh/Command/_read new file mode 100644 index 000000000..e398eaf1e --- /dev/null +++ b/Completion/Zsh/Command/_read @@ -0,0 +1,19 @@ +#compdef read + +local pflag expl line curcontext="$curcontext" + +# -p flag only relevant if we have a coprocess +(:>&p) 2>/dev/null && + pflag='(-q -u -z)-p[input is read from the coprocess]' + +_arguments -C -s -A "-*" -S \ + '-r[raw mode]' \ + '(-p -k -u -z)-q[read y or n character from terminal]' \ + '(-q)-k[specify number of characters to read]:number of characters' \ + '(-q -z)-t[test if input is available before reading]' \ + '(-q -u -p)-z[read entry from editor buffer stack]' \ + '(-E)-e[input read is echoed and not assigned]' \ + '(-e)-E[input read is echoed]' \ + '-A[first name is taken as an array]' \ + '(-q -z -p)-u+[specify file-descriptor to read from]:file-descriptor:_file_descriptors' \ + $pflag '1:varprompt:_vars -qS\?' '*:vars:_vars' -- cgit 1.4.1