diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:29:39 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:29:39 +0000 |
commit | 64bdb5bb019a84e27238cad20a7b36820421247b (patch) | |
tree | db20dd5238cec7cde56ef06601b2b9b63cb8e37c /Completion/Zsh | |
parent | 400d96a250e538e29805eea3739bf2091e385536 (diff) | |
download | zsh-64bdb5bb019a84e27238cad20a7b36820421247b.tar.gz zsh-64bdb5bb019a84e27238cad20a7b36820421247b.tar.xz zsh-64bdb5bb019a84e27238cad20a7b36820421247b.zip |
moved from Completion/Builtins/_read
Diffstat (limited to 'Completion/Zsh')
-rw-r--r-- | Completion/Zsh/Command/_read | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Completion/Zsh/Command/_read b/Completion/Zsh/Command/_read new file mode 100644 index 000000000..e49336475 --- /dev/null +++ b/Completion/Zsh/Command/_read @@ -0,0 +1,18 @@ +#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 -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' |