From c5957792abbfa51ebebd312b2345dfab7d37b62c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Mon, 13 Dec 2010 21:30:38 +0200 Subject: [PATCH] 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. --- bash_completion | 2 ++ 1 file changed, 2 insertions(+) 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