about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-08-08 07:20:56 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-08-08 07:20:56 +0000
commit7e231433596be391d1e5fa82fc9ebf72ee4cb7ea (patch)
tree3db44732dcf35f58f2d4b2a49ae12d479421d79e /Completion
parent0c08265c73513bde5486e49c70543cd77c6e47a6 (diff)
downloadzsh-7e231433596be391d1e5fa82fc9ebf72ee4cb7ea.tar.gz
zsh-7e231433596be391d1e5fa82fc9ebf72ee4cb7ea.tar.xz
zsh-7e231433596be391d1e5fa82fc9ebf72ee4cb7ea.zip
follow-up to 15588; add -w option to _values (look at all words); change _dd back (15597)
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_dd28
1 files changed, 11 insertions, 17 deletions
diff --git a/Completion/Unix/Command/_dd b/Completion/Unix/Command/_dd
index 64b8275e8..0c950f047 100644
--- a/Completion/Unix/Command/_dd
+++ b/Completion/Unix/Command/_dd
@@ -2,21 +2,15 @@
 
 local opts
 
-opts=(
-  'if[specify input file]:input file:_tilde_files'
-  'of[specify output file]:output file:_tilde_files'
-  'ibs[input block size]:block size (bytes)'
-  'obs[output block size]:block size (bytes)'
-  'bs[block size]:block size (bytes)'
-  'cbs[conversion buffer size]:buffer size (bytes)'
-  'skip[input blocks initially skipped]:blocks'
-  'seek[output blocks initially skipped]:blocks'
-  'files[specify number of input files to copy and concatenate]:number of files'
-  'count[number of input blocks to copy]:blocks'
+_values -w 'option' \
+  'if[specify input file]:input file:_tilde_files' \
+  'of[specify output file]:output file:_tilde_files' \
+  'ibs[input block size]:block size (bytes)' \
+  'obs[output block size]:block size (bytes)' \
+  'bs[block size]:block size (bytes)' \
+  'cbs[conversion buffer size]:buffer size (bytes)' \
+  'skip[input blocks initially skipped]:blocks' \
+  'seek[output blocks initially skipped]:blocks' \
+  'files[specify number of input files to copy and concatenate]:number of files' \
+  'count[number of input blocks to copy]:blocks' \
   'conv[specify conversions to apply]:conversion:_values -s , "conversion" ascii ebcdic ibm block unblock lcase ucase swab noerror sync'
-)
-
-[[ "$PREFIX$SUFFIX" != *\=* ]] &&
-    opts=( "${(@)opts:#(${(j:|:)~words[2,-1]%%\=*})\[*}" )
-
-_values -S '=' 'option' "$opts[@]"