[Bash-completion-commits] [SCM] bash-completion branch, master, updated. c5957792abbfa51ebebd312b2345dfab7d37b62c
Ville Skyttä
ville.skytta at iki.fi
Mon Dec 13 20:03:36 UTC 2010
The following commit has been merged in the master branch:
commit c5957792abbfa51ebebd312b2345dfab7d37b62c
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Mon Dec 13 21:30:38 2010 +0200
Turn on -o filenames in _command_offset() for completions that specify it.
We don't need to do "complete -o filenames ..." when installing
bash-completion completions any longer (they should be handled
"internally"), but there are external completions which do that and
need it in effect also when completing with nice, sudo and friends.
diff --git a/bash_completion b/bash_completion
index 44137c2..e724f02 100644
--- a/bash_completion
+++ b/bash_completion
@@ -1518,6 +1518,8 @@ _command_offset()
cspec=${cspec%% *}
if [[ "$cspec" != @(dir|file)names ]]; then
COMPREPLY=("${COMPREPLY[@]//\\\\:/:}")
+ else
+ _compopt_o_filenames
fi
fi
elif [ -n "$cspec" ]; then
--
bash-completion
More information about the Bash-completion-commits
mailing list