_known_hosts(): fix bug where defaulting to standard hostname completion
would yield a compgen error
This commit is contained in:
parent
b19e3d0992
commit
0a9fda5e8c
@ -1,6 +1,6 @@
|
||||
# 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>
|
||||
#
|
||||
@ -1096,7 +1096,7 @@ _known_hosts()
|
||||
done
|
||||
else
|
||||
# Just do normal hostname completion
|
||||
COMPREPLY=( $( compgen -A hostname -S $suffix $cur ) )
|
||||
COMPREPLY=( $( compgen -A hostname -S "$suffix" $cur ) )
|
||||
fi
|
||||
|
||||
return 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user