diff options
| author | Igor Murzov <e-mail@date.by> | 2011-11-20 17:00:03 +0300 |
|---|---|---|
| committer | Igor Murzov <e-mail@date.by> | 2011-11-20 17:10:58 +0300 |
| commit | f0283e1c1b64202bb1adb9f44eac6fdfd80edece (patch) | |
| tree | f22523ee22d7e748796f6cf103a23355f15e3a69 /bash_completion | |
| parent | 03c2fe9301bbb77735550c7bbb28babe43238ec7 (diff) | |
| download | bash-completion-f0283e1c1b64202bb1adb9f44eac6fdfd80edece.tar.gz | |
Cleanups: Make code more compact.
Drop useless spaces, backslashes, return codes, unused arguments etc.
Diffstat (limited to 'bash_completion')
| -rw-r--r-- | bash_completion | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bash_completion b/bash_completion index 00f72f9a..ac5842a1 100644 --- a/bash_completion +++ b/bash_completion @@ -1625,7 +1625,7 @@ _command_offset() for (( i; i <= COMP_CWORD; i++ )); do unset COMP_WORDS[i] done - COMP_CWORD=$(( $COMP_CWORD - $word_offset )) + ((COMP_CWORD -= $word_offset)) COMPREPLY=() local cur @@ -1696,7 +1696,7 @@ _root_command() { local PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin local root_command=$1 - _command $1 $2 $3 + _command } complete -F _root_command fakeroot gksu gksudo kdesudo really sudo |
