diff options
Diffstat (limited to 'completions/badblocks')
-rw-r--r-- | completions/badblocks | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/completions/badblocks b/completions/badblocks index d70affe2..a366338c 100644 --- a/completions/badblocks +++ b/completions/badblocks @@ -6,19 +6,19 @@ _badblocks() _init_completion || return case $prev in - -b|-c|-e|-d|-p|-t) + -*[bcedpt]) return ;; - -i|-o) + -*[io]) _filedir return ;; esac if [[ "$cur" == -* ]]; then - COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) ) + COMPREPLY=( $(compgen -W '$(_parse_usage "$1")' -- "$cur") ) # Filter out -w (dangerous) and -X (internal use) - for i in ${!COMPREPLY[@]}; do + for i in "${!COMPREPLY[@]}"; do [[ ${COMPREPLY[i]} == -[wX] ]] && unset 'COMPREPLY[i]' done return |