Override MANPAGER when generating perldoc completions (RedHat: #689180).
This commit is contained in:
parent
ee43b22f9b
commit
f1b9580b35
3
CHANGES
3
CHANGES
@ -29,6 +29,9 @@ bash-completion (2.x)
|
||||
* Complete oo{writer,impress,calc,draw} on LibreOffice FlatXML extensions
|
||||
(RedHat: #692548).
|
||||
|
||||
[ Scott Bronson ]
|
||||
* Override MANPAGER when generating perldoc completions (RedHat: #689180).
|
||||
|
||||
-- David Paleino <d.paleino@gmail.com> Sun, 06 Feb 2011 21:46:37 +0100
|
||||
|
||||
bash-completion (1.3)
|
||||
|
@ -119,7 +119,7 @@ _perldoc()
|
||||
if [[ "$cur" != */* ]]; then
|
||||
_perlmodules $perl
|
||||
COMPREPLY+=( $( compgen -W \
|
||||
'$( PAGER=/bin/cat man perl | \
|
||||
'$( MANPAGER=/bin/cat PAGER=/bin/cat man perl | \
|
||||
sed -ne "/perl.*Perl overview/,/perlwin32/p" | \
|
||||
awk "\$NF=2 && \$1 ~ /^perl/ { print \$1 }" )' -- "$cur" ) )
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user