diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2009-12-11 00:39:59 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2009-12-11 00:39:59 +0200 |
commit | 733811a7b14f7a510f99977e41d97afa353603c6 (patch) | |
tree | f2b249f16364b9d2ba4671e1a7d0d2ba89a4ef50 /bash_completion | |
parent | 8f68300a0d97e9e9b3d2cd8740519d2e29233754 (diff) | |
download | bash-completion-733811a7b14f7a510f99977e41d97afa353603c6.tar.gz |
Don't append space after colon in _usergroup (bash 4 only).
Diffstat (limited to 'bash_completion')
-rw-r--r-- | bash_completion | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bash_completion b/bash_completion index 55c8919f..4a12c931 100644 --- a/bash_completion +++ b/bash_completion @@ -697,6 +697,7 @@ _usergroup() elif [[ $cur = *:* ]]; then COMPREPLY=( $( compgen -g -- ${cur##*[.:]} ) ) else + type compopt &>/dev/null && compopt -o nospace COMPREPLY=( $( compgen -S : -u -- "$cur" ) ) fi } |