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

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