- _man(): Debian does not support man --path, so try setting path using
manpath and, if that fails, use man --path instead
This commit is contained in:
parent
3d1d2d9e18
commit
f27c448ef2
@ -1,6 +1,6 @@
|
|||||||
# bash_completion - some programmable completion functions for bash 2.05a
|
# bash_completion - some programmable completion functions for bash 2.05a
|
||||||
#
|
#
|
||||||
# $Id: bash_completion,v 1.178 2002/03/06 00:23:30 ianmacd Exp $
|
# $Id: bash_completion,v 1.179 2002/03/06 18:38:37 ianmacd Exp $
|
||||||
#
|
#
|
||||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||||
#
|
#
|
||||||
@ -409,7 +409,7 @@ _man()
|
|||||||
|
|
||||||
OS=$( uname -s )
|
OS=$( uname -s )
|
||||||
if [ $OS = Linux ]; then
|
if [ $OS = Linux ]; then
|
||||||
manpath=$( man --path )
|
manpath=$( manpath 2>/dev/null || man --path )
|
||||||
else
|
else
|
||||||
manpath=$MANPATH
|
manpath=$MANPATH
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user