[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-277-gbc6fb7d
Ville Skyttä
ville.skytta at iki.fi
Sun May 8 20:16:13 UTC 2011
The following commit has been merged in the master branch:
commit bc6fb7d7118f2d8c7fbc84fecd20786dc35810c2
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sun May 8 23:12:30 2011 +0300
perldoc: Use perldoc itself instead of man.
diff --git a/completions/perl b/completions/perl
index 2e1dac0..eeea0eb 100644
--- a/completions/perl
+++ b/completions/perl
@@ -117,7 +117,7 @@ _perldoc()
_perlmodules $perl
if [[ $cur == p* ]]; then
COMPREPLY+=( $( compgen -W \
- '$( MANPAGER=/bin/cat PAGER=/bin/cat man perl | \
+ '$( PERLDOC_PAGER=/bin/cat "$1" -u perl | \
sed -ne "/perl.*Perl overview/,/perlwin32/p" | \
awk "\$NF=2 && \$1 ~ /^perl/ { print \$1 }" )' \
-- "$cur" ) )
--
bash-completion
More information about the Bash-completion-commits
mailing list