about summary refs log tree commit diff
path: root/Completion/User/_dd
blob: 63ae40f5040e3e7579ab68d1f5b14e581c2f0a57 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#defcomp dd

if [[ -iprefix conv= ]]; then
  # If there's a comma present, ignore up to the last one.  The
  # test alone will have that effect.
  [[ -string , ]]
  compgen -S, -q \
      -k '(ascii ebcdic ibm block unblock lcase ucase swab noerror sync)'
elif [[ -iprefix 'if=' || -iprefix 'of=' ]]; then
  _files
else
  compgen -S '=' -k '(if of ibs obs bs cbs skip files seek count conv)'
fi