Skip to content

Commit 6c8380d

Browse files
committed
valgrind: look tool names from lib/*-linux-gnu dirs too
Fixes lookup on Debian 10.
1 parent 4cf7e4f commit 6c8380d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

completions/valgrind

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ _valgrind()
3232
# Tools seem to be named e.g. like memcheck-amd64-linux from which
3333
# we want to grab memcheck.
3434
COMPREPLY=( $(compgen -W '$(
35-
for f in /usr{,/local}/lib{,64,exec}/valgrind/*; do
35+
for f in /usr{,/local}/lib{,64,exec}{/*-linux-gnu,}/valgrind/*
36+
do
3637
[[ $f != *.so && -x $f && $f =~ ^.*/(.*)-[^-]+-[^-]+ ]] &&
3738
printf "%s\n" "${BASH_REMATCH[1]}"
3839
done)' -- "$cur") )

0 commit comments

Comments
 (0)