[Bash-completion-commits] [SCM] bash-completion branch, dynamic-loading, updated. 1.3-471-gf6cd934
Ville Skyttä
ville.skytta at iki.fi
Sun Oct 23 08:11:18 UTC 2011
The following commit has been merged in the dynamic-loading branch:
commit f6cd9344fb33642763579db12faa5d757c27d69b
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sun Oct 23 11:09:48 2011 +0300
_completion_loader: Use _longopt as the fallback.
diff --git a/bash_completion b/bash_completion
index 716c3aa..7aa16c6 100644
--- a/bash_completion
+++ b/bash_completion
@@ -1836,8 +1836,8 @@ _completion_loader()
# Finally, try basename.
. "$compdir/${1##*/}" &>/dev/null && return 124
- # Fall back to something generic if we don't have anything else.
- complete -o bashdefault -f "$1" && return 124
+ # Need to define *something*, otherwise there will be no completion at all.
+ complete -F _longopt "$1" && return 124
} &&
complete -D -F _completion_loader
--
bash-completion
More information about the Bash-completion-commits
mailing list