Hello, Any objections to the attached patch? For more info, see:
http://lists.alioth.debian.org/pipermail/bash-completion-devel/2009-July/001766.html http://lists.alioth.debian.org/pipermail/bash-completion-devel/2009-August/001785.html http://lists.alioth.debian.org/pipermail/bash-completion-devel/2009-August/001808.html (No strong opinions whether the test should be "type compopt &>/dev/null" or "${BASH_VERSINFO[0]} -ge 4" but I like the former a bit better.)
From 3725aa3db25f89ce2ac9034e7878bb7e7e83e061 Mon Sep 17 00:00:00 2001 From: =?utf-8?q?Ville=20Skytt=C3=A4?= <[email protected]> Date: Sat, 28 Nov 2009 20:45:45 +0200 Subject: [PATCH] Turn on -o filenames in _filedir() if compopt is available. --- bash_completion | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/bash_completion b/bash_completion index 05f5c91..0492e9d 100644 --- a/bash_completion +++ b/bash_completion @@ -456,6 +456,8 @@ _filedir() fi COMPREPLY=( "${comprep...@]}" "${to...@]}" ) + [ ${#comprep...@]} -ne 0 ] && type compopt &>/dev/null && \ + compopt -o filenames } # _filedir() -- 1.6.2.5
_______________________________________________ Bash-completion-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel
