diff options
| author | Ville Skyttä <ville.skytta@iki.fi> | 2011-05-11 19:42:02 +0300 |
|---|---|---|
| committer | Ville Skyttä <ville.skytta@iki.fi> | 2011-05-11 19:42:02 +0300 |
| commit | 0bc2bb589755d401294013fd0b4c547fe67c2934 (patch) | |
| tree | f6dbf8f223b696a843b8be0e68cf0a539be01a59 /bash_completion | |
| parent | a593f4512ac9f0ae145a4f8eaa1e35b99eaab534 (diff) | |
| download | bash-completion-0bc2bb589755d401294013fd0b4c547fe67c2934.tar.gz | |
Clean up unneeded semicolons.
Diffstat (limited to 'bash_completion')
| -rw-r--r-- | bash_completion | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bash_completion b/bash_completion index 03d89420..d294d479 100644 --- a/bash_completion +++ b/bash_completion @@ -533,7 +533,7 @@ _get_cword() _get_pword() { if [ $COMP_CWORD -ge 1 ]; then - _get_cword "${@:-}" 1; + _get_cword "${@:-}" 1 fi } @@ -1618,7 +1618,7 @@ _command_offset() COMP_WORDS[i]=${COMP_WORDS[i+$word_offset]} done for (( i; i <= COMP_CWORD; i++ )); do - unset COMP_WORDS[i]; + unset COMP_WORDS[i] done COMP_CWORD=$(( $COMP_CWORD - $word_offset )) @@ -1663,9 +1663,9 @@ _command_offset() fi fi else - cspec=${cspec#complete}; - cspec=${cspec%%$compcmd}; - COMPREPLY=( $( eval compgen "$cspec" -- "$cur" ) ); + cspec=${cspec#complete} + cspec=${cspec%%$compcmd} + COMPREPLY=( $( eval compgen "$cspec" -- "$cur" ) ) fi elif [ ${#COMPREPLY[@]} -eq 0 ]; then _filedir |
