_man(): manpath doesn't exist on Sorceror Linux, so use man --path instead

This commit is contained in:
ianmacd 2002-02-20 02:56:08 +00:00
parent 4351ae5a0b
commit 705b6b76ff

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05a
#
# $Id: bash_completion,v 1.135 2002/02/20 01:12:52 ianmacd Exp $
# $Id: bash_completion,v 1.136 2002/02/20 03:56:08 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
@ -295,7 +295,7 @@ _man()
return 0
fi
manpath=$( manpath )
manpath=$( man --path )
if [ -z "$manpath" ]; then
COMPREPLY=( $( compgen -c $cur ) )
return 0