[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1b248b55021318e653a0ca81145829c9dc77c97b

Ville Skyttä ville.skytta at iki.fi
Sat Oct 23 11:39:00 UTC 2010


The following commit has been merged in the master branch:
commit 57720ee0be09ace405942313aeb6c3a3b90b45d1
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sat Oct 23 14:15:32 2010 +0300

    Treat --*path* like --*file* in _longopt().

diff --git a/bash_completion b/bash_completion
index 589c2e5..2a0124a 100644
--- a/bash_completion
+++ b/bash_completion
@@ -1491,10 +1491,10 @@ _longopt()
 
     if _split_longopt; then
         case "$prev" in
-            *[Dd][Ii][Rr]*)
+            --*[Dd][Ii][Rr]*)
                 _filedir -d
                 ;;
-            *[Ff][Ii][Ll][Ee]*)
+            --*[Ff][Ii][Ll][Ee]*|--*[Pp][Aa][Tt][Hh]*)
                 _filedir
                 ;;
         esac

-- 
bash-completion



More information about the Bash-completion-commits mailing list