- silence stderr in man invocation in perldoc completion

This commit is contained in:
ianmacd 2003-05-17 07:52:42 +00:00
parent c0ebebe77a
commit c4e4bfb64f

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05b # bash_completion - some programmable completion functions for bash 2.05b
# #
# $Id: bash_completion,v 1.564 2003/05/16 07:12:14 ianmacd Exp $ # $Id: bash_completion,v 1.565 2003/05/17 09:52:42 ianmacd Exp $
# #
# Copyright (C) Ian Macdonald <ian@caliban.org> # Copyright (C) Ian Macdonald <ian@caliban.org>
# #
@ -4068,7 +4068,7 @@ _perldoc()
;; ;;
*) *)
_perlmodules _perlmodules
COMPREPLY=( ${COMPREPLY[@]} $( compgen -W '$( PAGER=cat man perl | sed -ne "/perl.*Perl overview/,/perlwin32/s/^[^a-z0-9]*\([a-z0-9]*\).*$/\1/p")' -- $cur ) ) COMPREPLY=( ${COMPREPLY[@]} $( compgen -W '$( PAGER=cat man perl 2>/dev/null | sed -ne "/perl.*Perl overview/,/perlwin32/s/^[^a-z0-9]*\([a-z0-9]*\).*$/\1/p")' -- $cur ) )
return 0 return 0
;; ;;