The following commit has been merged in the master branch:
commit 811666369ec94cdc8ab841aac69824e8581ee460
Author: Igor Murzov <[email protected]>
Date:   Sun Nov 20 20:52:29 2011 +0300

    valgrind: Parse option arguments that contain dashes.
    
    Fixes parsing lines like "--smc-check=none|stack|all|all-non-file".

diff --git a/completions/valgrind b/completions/valgrind
index d183452..56add5b 100644
--- a/completions/valgrind
+++ b/completions/valgrind
@@ -81,7 +81,7 @@ _valgrind()
                     ;;
                 # "yes", "yes|no", etc (but not "string", "STR",
                 # "hint1,hint2,...")
-                yes|+([a-z0-9])\|+([a-z0-9\|]))
+                yes|+([-a-z0-9])\|+([-a-z0-9\|]))
                     COMPREPLY=( $( IFS='|' compgen -W '$value' -- "$cur" ) )
                     return
                     ;;

-- 
bash-completion

_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-commits

Reply via email to