diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2010-12-13 21:30:38 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2010-12-13 21:33:46 +0200 |
commit | c5957792abbfa51ebebd312b2345dfab7d37b62c (patch) | |
tree | bc6442c5fda4234f3d77f855c21a4084843e6fc2 | |
parent | 70d5ff09e04886e33998def5eebbdec84dae230a (diff) | |
download | bash-completion-c5957792abbfa51ebebd312b2345dfab7d37b62c.tar.gz |
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.
-rw-r--r-- | bash_completion | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bash_completion b/bash_completion index 44137c25..e724f02e 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 |