_man() wasn't completing on filenames with a relative path

This commit is contained in:
ianmacd 2002-01-16 02:16:56 +00:00
parent 6f82e53362
commit f433992548

View File

@ -2,7 +2,7 @@
#
# <![CDATA[
#
# $Id: bash_completion,v 1.55 2002/01/15 18:20:48 ianmacd Exp $
# $Id: bash_completion,v 1.56 2002/01/16 03:16:56 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
@ -285,7 +285,7 @@ _man()
prev=${COMP_WORDS[COMP_CWORD-1]}
# default completion if parameter contains /
[[ "$cur" == /* ]] && return 0
[[ "$cur" == */* ]] && return 0
# default to command completion if no man.config
if [ ! -f /etc/man.config ]; then
COMPREPLY=( $( compgen -c $cur ) )