[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 733811a7b14f7a510f99977e41d97afa353603c6
Ville Skyttä
ville.skytta at iki.fi
Thu Dec 10 22:40:18 UTC 2009
The following commit has been merged in the master branch:
commit 733811a7b14f7a510f99977e41d97afa353603c6
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Fri Dec 11 00:39:59 2009 +0200
Don't append space after colon in _usergroup (bash 4 only).
diff --git a/bash_completion b/bash_completion
index 55c8919..4a12c93 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
}
--
bash-completion
More information about the Bash-completion-commits
mailing list