summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-10-23 11:09:48 +0300
committerVille Skyttä <ville.skytta@iki.fi>2011-10-23 11:09:48 +0300
commitf6cd9344fb33642763579db12faa5d757c27d69b (patch)
tree24f754eb22f67a8eec2f6ba6c6632e73cbec8694
parentff8e52c9605fa0a40d642d1ddb57ada11213ac3c (diff)
downloadbash-completion-f6cd9344fb33642763579db12faa5d757c27d69b.tar.gz
_completion_loader: Use _longopt as the fallback.
-rw-r--r--bash_completion4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash_completion b/bash_completion
index 716c3aaa..7aa16c6e 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