summaryrefslogtreecommitdiff
path: root/completions
diff options
context:
space:
mode:
authorIgor Murzov <e-mail@date.by>2011-11-20 20:52:29 +0300
committerIgor Murzov <e-mail@date.by>2011-11-20 21:00:10 +0300
commit811666369ec94cdc8ab841aac69824e8581ee460 (patch)
tree08dcceb1520c18ab7d1fe868474c6a9474f52305 /completions
parentd26ede488cbb64bc2faec50976f2cc1b313a88aa (diff)
downloadbash-completion-811666369ec94cdc8ab841aac69824e8581ee460.tar.gz
valgrind: Parse option arguments that contain dashes.
Fixes parsing lines like "--smc-check=none|stack|all|all-non-file".
Diffstat (limited to 'completions')
-rw-r--r--completions/valgrind2
1 files changed, 1 insertions, 1 deletions
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
;;