[Bash-completion-commits] [SCM] bash-completion branch, master, updated. cbd15cc8a0a734f4ed651d03a16e7e047f0d3963
Ville Skyttä
ville.skytta at iki.fi
Tue Oct 20 19:24:09 UTC 2009
The following commit has been merged in the master branch:
commit cbd15cc8a0a734f4ed651d03a16e7e047f0d3963
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Tue Oct 20 22:22:47 2009 +0300
Don't bother defining __get_cwordX on non-applicable bash versions.
diff --git a/bash_completion b/bash_completion
index 1fe7e7f..9673304 100644
--- a/bash_completion
+++ b/bash_completion
@@ -270,6 +270,7 @@ _get_cword()
# _get_cword, main routine
# __get_cword4, bash-4 variant
#
+[ -z "$bash4" ] &&
__get_cword3()
{
if [[ "${#COMP_WORDS[COMP_CWORD]}" -eq 0 ]] || [[ "$COMP_POINT" == "${#COMP_LINE}" ]]; then
@@ -332,6 +333,7 @@ __get_cword3()
# _get_cword, main routine
# __get_cword3, bash-3 variant
#
+[ -n "$bash4" ] &&
__get_cword4()
{
local i
--
bash-completion
More information about the Bash-completion-commits
mailing list