mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-25 17:20:25 +02:00
make _dd not use already used specs; fix for selecting stuff to complete in _describe; fix for correction and _describe with grouped lists (15588)
This commit is contained in:
parent
23581f7664
commit
b0ac280e1a
4 changed files with 39 additions and 14 deletions
|
|
@ -1,14 +1,22 @@
|
|||
#compdef dd
|
||||
|
||||
_values -S '=' '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' \
|
||||
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'
|
||||
'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[@]"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue