/usr/share/bash-completion/completions/dupload is in dupload 2.9.1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | # Debian dupload(1) completion
# Original file:
# Debian dput(1) completion
# Copyright 2002 Roland Mas <lolando@debian.org>
# Modified for dupload(1)
# Paul Evans <leonerd@leonerd.org.uk>
have dupload &&
_dupload()
{
local cur prev options paroptions special i delayed_options hosts
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
prev=${COMP_WORDS[COMP_CWORD-1]}
options='-c --configfile -d --debug -f --force -k --keep --no --nomail \
--mailonly --noarchive -p --print -q --quiet -t --to -V -Version'
case $prev in
--config|-c)
COMPREPLY=( $( compgen -o filenames -G "$cur*" ) )
;;
*)
COMPREPLY=( $(
compgen -G "${cur}*.changes"
compgen -G "${cur}*.asc"
compgen -G "${cur}*.sig"
compgen -W "$options" | grep "^$cur"
) )
;;
esac
return 0
}
[ "$have" ] && complete -F _dupload -o filenames dupload
|