From 06e4c4859c270e0999f3c8c9ba02fc16adf8aa6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sun, 4 Sep 2016 10:36:16 +0300 Subject: [PATCH] perl: Remove full path to cat in PERLDOC_PAGER call --- completions/perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completions/perl b/completions/perl index 19447edc3ec..250039ee767 100644 --- a/completions/perl +++ b/completions/perl @@ -117,7 +117,7 @@ _perldoc() _perl_helper perldocs $perl if [[ $cur == p* ]]; then COMPREPLY+=( $( compgen -W \ - '$( PERLDOC_PAGER=/bin/cat "$1" -u perl | \ + '$( PERLDOC_PAGER=cat "$1" -u perl | \ command sed -ne "/perl.*Perl overview/,/perlwin32/p" | \ awk "\$NF=2 && \$1 ~ /^perl/ { print \$1 }" )' \ -- "$cur" ) )