diff options
Diffstat (limited to 'completions/valgrind')
-rw-r--r-- | completions/valgrind | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/completions/valgrind b/completions/valgrind index 08950998..97e4cc59 100644 --- a/completions/valgrind +++ b/completions/valgrind @@ -34,7 +34,7 @@ _valgrind() COMPREPLY=( $( compgen -W '$( for f in /usr{,/local}/lib{,64}/valgrind/*; do [[ $f != *.so && -x $f ]] && - sed -ne "s/^.*\/\(.*\)-\([^-]*\)-\([^-]*\)/\1/p" <<<$f + command sed -ne "s/^.*\/\(.*\)-\([^-]*\)-\([^-]*\)/\1/p" <<<$f done )' -- "$cur" ) ) return ;; @@ -70,7 +70,7 @@ _valgrind() # generic cases parsed from --help output --+([-A-Za-z0-9_])) local value=$( $1 --help-debug $tool 2>/dev/null | \ - sed -ne "s|^[$' \t']*$prev=\([^$' \t']\{1,\}\).*|\1|p" ) + command sed -ne "s|^[[:blank:]]*$prev=\([^[:blank:]]\{1,\}\).*|\1|p" ) case $value in \<file*\>) _filedir @@ -107,4 +107,4 @@ _valgrind() } && complete -F _valgrind valgrind -# ex: ts=4 sw=4 et filetype=sh +# ex: filetype=sh |