From 811666369ec94cdc8ab841aac69824e8581ee460 Mon Sep 17 00:00:00 2001 From: Igor Murzov Date: Sun, 20 Nov 2011 20:52:29 +0300 Subject: [PATCH] valgrind: Parse option arguments that contain dashes. Fixes parsing lines like "--smc-check=none|stack|all|all-non-file". --- completions/valgrind | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completions/valgrind b/completions/valgrind index d1834526..56add5bb 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 ;;