diff options
Diffstat (limited to 'completions/_ionice')
-rw-r--r-- | completions/_ionice | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/completions/_ionice b/completions/_ionice index 1aa51f2a..b0d96a13 100644 --- a/completions/_ionice +++ b/completions/_ionice @@ -9,7 +9,7 @@ _ionice() _init_completion || return local offset=0 i - for (( i=1; i <= cword; i++ )); do + for ((i = 1; i <= cword; i++)); do case ${words[i]} in -h) return @@ -18,8 +18,8 @@ _ionice() offset=0 break ;; - -c|-n) - (( i++ )) + -c | -n) + ((i++)) continue ;; -*) @@ -30,18 +30,18 @@ _ionice() break done - if [[ $offset -gt 0 ]]; then + if ((offset > 0)); then _command_offset $offset return fi case $prev in -c) - COMPREPLY=( $(compgen -W '{0..3}' -- "$cur") ) + COMPREPLY=($(compgen -W '{0..3}' -- "$cur")) return ;; -n) - COMPREPLY=( $(compgen -W '{0..7}' -- "$cur") ) + COMPREPLY=($(compgen -W '{0..7}' -- "$cur")) return ;; -p) @@ -51,10 +51,10 @@ _ionice() esac if [[ $cur == -* ]]; then - COMPREPLY=( $(compgen -W '$(_parse_help "$1" -h)' -- "$cur") ) + COMPREPLY=($(compgen -W '$(_parse_help "$1" -h)' -- "$cur")) return fi } && -complete -F _ionice ionice + complete -F _ionice ionice # ex: filetype=sh |