_known_hosts(): fix bug where defaulting to standard hostname completion

would yield a compgen error
This commit is contained in:
ianmacd 2002-02-20 18:09:45 +00:00
parent b19e3d0992
commit 0a9fda5e8c

View File

@ -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.138 2002/02/20 06:41:50 ianmacd Exp $ # $Id: bash_completion,v 1.139 2002/02/20 19:09:45 ianmacd Exp $
# #
# Copyright (C) Ian Macdonald <ian@caliban.org> # Copyright (C) Ian Macdonald <ian@caliban.org>
# #
@ -1096,7 +1096,7 @@ _known_hosts()
done done
else else
# Just do normal hostname completion # Just do normal hostname completion
COMPREPLY=( $( compgen -A hostname -S $suffix $cur ) ) COMPREPLY=( $( compgen -A hostname -S "$suffix" $cur ) )
fi fi
return 0 return 0