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.
This commit is contained in:
Ville Skyttä 2010-12-13 21:30:38 +02:00
parent 70d5ff09e0
commit c5957792ab

View File

@ -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