5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
9 COMPREPLY=( $(compgen -W "superblock" -- $cur) )
13 COMPREPLY=( $(compgen -W "blocksize" -- $cur) )
17 COMPREPLY=( $(compgen -W "external_journal" -- $cur) )
21 COMPREPLY=( $(compgen -W "bad_blocks_file" -- $cur) )
30 OPTS="-p -n -y -c -f -v -b -B -j -l -L"
31 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
35 compopt -o bashdefault -o default
36 COMPREPLY=( $(compgen -W "$(lsblk -pnro name)" -- $cur) )
39 complete -F _fsck_module fsck