about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2002-08-23 10:23:05 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2002-08-23 10:23:05 +0000
commitbc5567c859a074e2559b3c94c08ca1003b543da9 (patch)
tree9bf16cb790d8232a881f54bdc2d1a81e0aa96035
parent7123f4413bd02e2ae9a9f762012ba7906b0e7bfd (diff)
downloadzsh-bc5567c859a074e2559b3c94c08ca1003b543da9.tar.gz
zsh-bc5567c859a074e2559b3c94c08ca1003b543da9.tar.xz
zsh-bc5567c859a074e2559b3c94c08ca1003b543da9.zip
17573: complete new -s option to read
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Zsh/Command/_read11
2 files changed, 11 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 2392fdbd2..8a589d5e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-08-22  Oliver Kiddle  <opk@zsh.org>
+
+	* 17573: Completion/Zsh/Command/_read: complete -s option to
+	read added in 17544
+
 2002-08-22  Peter Stephenson  <pws@csr.com>
 
 	* 17544: Src/builtin.c, Doc/Zsh/builtins.yo: add `read -s' which
diff --git a/Completion/Zsh/Command/_read b/Completion/Zsh/Command/_read
index e49336475..5508c90ed 100644
--- a/Completion/Zsh/Command/_read
+++ b/Completion/Zsh/Command/_read
@@ -1,18 +1,19 @@
 #compdef read
 
-local pflag expl line curcontext="$curcontext"
+local pflag
 
 # -p flag only relevant if we have a coprocess
 (:>&p) 2>/dev/null &&
-  pflag='(-q -u -z)-p[input is read from the coprocess]'
+  pflag='(-q -s -u -z)-p[input is read from the coprocess]'
 
-_arguments -C -s -A "-*" -S \
+_arguments -s -A "-*" -S \
   '-r[raw mode]' \
-  '(-p -k -u -z)-q[read y or n character from terminal]' \
+  '(-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 -u -p)-z[read entry from editor buffer stack]' \
+  '(-q -s -u -p)-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]' \
   '-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'