COMPREPLY=( $(compgen -W "num" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "$(awk '{print $NF}' /proc/filesystems)" -- $cur) )
return 0
;;
+ '-h'|'-V')
+ return 0
+ ;;
esac
case $cur in
-*)
_cal_module()
{
- local cur OPTS
+ local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
+ esac
case $cur in
-*)
OPTS="-1 --one -3 --three -s --sunday -m --monday -j --julian -y --year -V --version -h --help"
COMPREPLY=( $(compgen -W "sectors" -- $cur) )
return 0
;;
+ '-v')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "horizontal vertical" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
OPTS="-h --help
-e --enable
_chfn_module()
{
- local cur OPTS
+ local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-u'|'--help'|'-v'|'--version')
+ return 0
+ ;;
+ esac
case $cur in
-*)
OPTS="-f --full-name -o --office -p --office-phone -h --home-phone -u --help -v --version"
_chrt_module()
{
- local cur OPTS
+ local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
+ esac
# FIXME: -p is ambiguous, it takes either pid or priority as an
# argument depending on whether user wanted to get or set the
# values. Perhaps the command interface should be reconsidered.
COMPREPLY=( $(compgen -W "$(chsh -l)" -- $cur) )
return 0
;;
+ '-u'|'--help'|'-v'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "number" -- $cur) )
return 0
;;
+ '-H'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
OPTS="-b --no-backspaces
-f --fine
_colcrt_module()
{
- local cur OPTS
+ local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
+ esac
case $cur in
-*)
OPTS=" - --no-underlining
_colrm_module()
{
- local cur OPTS
+ local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
+ esac
case $cur in
-*)
OPTS="-V --version -h --help"
COMPREPLY=( $(compgen -W "string" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
_ctrlaltdel_module()
{
- local cur
- cur="${COMP_WORDS[COMP_CWORD]}"
+ local cur prev
COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
+ esac
if [ $COMP_CWORD -eq 1 ]; then
COMPREPLY=( $(compgen -W "hard soft" -- $cur) )
fi
COMPREPLY=( $(compgen -W "seconds" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
+ esac
case $COMP_CWORD in
1)
local DEV TYPE DEVICES=''
COMPREPLY=( $(compgen -W "size" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
OPTS="-C --clear
-c --read-clear
COMPREPLY=( $(compgen -W "$(eject -X)" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "bytes" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
_fdformat_module()
{
- local cur OPTS
+ local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
+ esac
DEVS=$(for I in echo /dev/fd*; do if [ -e $I ]; then echo $I; fi; done)
OPTS="-n --no-verify -h --help -V --version $DEVS"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
COMPREPLY=( $(compgen -W "number" -- $cur) )
return 0
;;
+ '-h'|'-v')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "$DEV_MPOINT" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -c -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "bad_blocks_file" -- $cur) )
return 0
;;
+ '-?')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -o dirnames -- ${cur:-"/"}) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
COMPREPLY=( $(compgen -W "${OPTS[*]}" -S ' ' -- $cur) )
return 0
_fsck.minix_module()
{
- local cur OPTS DEVS
+ local cur prev OPTS DEVS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-V'|'--version')
+ return 0
+ ;;
+ esac
while read dev; do DEVS+="$dev " ; done < <(lsblk -pnro name)
OPTS="-l -a -r -v -s -m -f -V --version"
COMPREPLY=( $(compgen -W "${OPTS[*]} $DEVS" -- $cur) )
_fsfreeze_module()
{
- local cur OPTS
+ local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
+ esac
case $cur in
-*)
OPTS="-f --freeze -u --unfreeze -h --help -V --version"
COMPREPLY=( $(compgen -W "num" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "sh bash csh tcsh" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "offset" -- $cur) )
return 0
;;
+ '-V')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "year" -- $cur) )
return 0
;;
+ '-h'|'-?'|'--help'|'-v'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "$PIDS" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "$KEYIDS" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
'=')
COMPREPLY=( $(compgen -W "id" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
OPTS="-i --id
-h --help
COMPREPLY=( $(compgen -W "number" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
return 0
COMPREPLY=( $(compgen -W "$IFLAGS" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "$(awk '$NF ~ /^\// {print $NF}' /proc/net/unix)" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "char" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "$OUTPUT" -S ',' -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "$OUTPUT" -S ',' -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "$OPTS" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "$OUTPUT" -S ',' -- $cur) )
return 0
;;
-
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -f -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
_mesg_module()
{
- local cur OPTS
+ local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
+ esac
case $cur in
-*)
OPTS="-v --verbose -V --version -h --help"
COMPREPLY=( $(compgen -W "$FSTYPES" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "name" -- $cur) )
return 0
;;
+ '-h'|'--help'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "name" -- $cur) )
return 0
;;
+ '-h'|'-V')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "14 30" -- $cur) )
return 0
;;
+ '-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "1" -- $cur) )
return 0
;;
- '-U'|--uuid)
+ '-U'|'--uuid'|'-h'|'--help'|'-V'|'--version')
return 0
;;
esac
_more_module()
{
- local cur OPTS
+ local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-V')
+ return 0
+ ;;
+ esac
case $cur in
-*)
OPTS="-d -f -l -p -c -u -s -number -V"
COMPREPLY=( $(compgen -W "fixme" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
+ esac
case $cur in
-*)
OPTS="-h --help -V --version -x --mountpoints -m --modes -o --owners -l --long -n --nosymlinks -v --vertical"
local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
+ esac
case $cur in
-*)
OPTS="-V --version -h --help"
COMPREPLY=( $(compgen -W "$PIDS" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
'=')
COMPREPLY=( $(compgen -W "aix bsd dos gpt mac minix sgi solaris_x86 sun ultrix unixware" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "prompt" -- $cur) )
return 0
;;
+ '-h'|'-V')
+ return 0
+ ;;
esac
case $cur in
-*)
_pivot_root_module()
{
- local cur
+ local cur prev
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
+ esac
case $COMP_CWORD in
1|2)
compopt -o filenames
COMPREPLY=( $(compgen -W "$OUTPUT" -S ',' -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
'=')
_raw_module()
{
- local cur
+ local cur prev
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
+ esac
case $cur in
-*)
local OPTS
COMPREPLY=( $(compgen -W "multiplier" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
OPTS="-m --mapfile
-p --profile
local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
+ esac
case $cur in
-*)
OPTS="-v --verbose -s --symlink -h --help -V --version"
COMPREPLY=( $(compgen -u -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
OPTS="-g --pgrp
-n --priority
local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
+ esac
case $COMP_CWORD in
1)
local DEV TYPE DEVICES=''
_rev_module()
{
- local cur OPTS
+ local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
+ esac
case $cur in
-*)
OPTS="-V --version -h --help"
COMPREPLY=( $(compgen -W "time_t" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
OPTS="-d --device
-n --dry-run
COMPREPLY=( $(compgen -c -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
'=')
COMPREPLY=( $(compgen -W "digit" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
_setarch_module()
{
- local cur OPTS
+ local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
+ esac
if [ $COMP_CWORD -eq 1 ]; then
COMPREPLY=( $(compgen -W "linux32 linux64 ppc32 ppc ppc64
ppc64pseries ppc64iseries i386
COMPREPLY=( $(compgen -W "profile" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
_setsid_module()
{
- local cur OPTS
+ local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
+ esac
case $cur in
-*)
OPTS="-c --ctty -h --help -V --version"
COMPREPLY=( $(compgen -W "freqnumber" -- $cur) )
return 0
;;
+ '-help'|'-version')
+ return 0
+ ;;
esac
OPTS=" -term
-reset
COMPREPLY=( $(compgen -f -- $cur) )
return 0
;;
+ '-h'|'--help'|'-v'|'--version')
+ return 0
+ ;;
esac
case $cur in
'=')
COMPREPLY=( $(compgen -W "$(chsh -l)" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W '$(uuidgen)' -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "$OUTPUT" -S ',' -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "number" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "$PIDS" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "off on" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "$TERM_LIST" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
_unshare_module()
{
- local cur OPTS
+ local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
+ esac
case $cur in
-*)
OPTS="-m --mount
local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
+ esac
case $cur in
-*)
OPTS="-f --follow -r --reverse -V --version -h --help"
COMPREPLY=( $(compgen -W "number" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
_uuidgen_module()
{
- local cur OPTS
+ local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
+ esac
case $cur in
-*)
OPTS="-r --random -t --time -V --version -h --help"
COMPREPLY=( $(compgen -W "seconds" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "seconds" -- $cur) )
return 0
;;
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -o dirnames -- ${cur:-"/"}) )
return 0
;;
+ '-h'|'-V')
+ return 0
+ ;;
esac
case $cur in
-*)
COMPREPLY=( $(compgen -W "$TYPES" -- $cur) )
return 0
;;
-
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
esac
case $cur in
-*)
_write_module()
{
- local cur
+ local cur prev
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ case $prev in
+ '-h'|'--help'|'-V'|'--version')
+ return 0
+ ;;
+ esac
case $COMP_CWORD in
1)
COMPREPLY=( $(compgen -u -- $cur) )