Skip to content

Commit

Permalink
valgrind: look up tools from libexec dirs too
Browse files Browse the repository at this point in the history
Current Fedora development has them in /usr/libexec/valgrind.
  • Loading branch information
scop committed Apr 14, 2019
1 parent 3c10d4d commit 662cb72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completions/valgrind
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ _valgrind()
# Tools seem to be named e.g. like memcheck-amd64-linux from which
# we want to grab memcheck.
COMPREPLY=( $(compgen -W '$(
for f in /usr{,/local}/lib{,64}/valgrind/*; do
for f in /usr{,/local}/lib{,64,exec}/valgrind/*; do
[[ $f != *.so && -x $f ]] &&
command sed -ne "s/^.*\/\(.*\)-\([^-]*\)-\([^-]*\)/\1/p" <<<$f
done)' -- "$cur") )
Expand Down

0 comments on commit 662cb72

Please sign in to comment.