There were probable bash 3.1 POSIX quote problems if UserKnownHostsFile or
GlobalKnownHostsFile keywords were used inside ssh config files. Fixed.
This commit is contained in:
parent
26d176a417
commit
9ac4166e92
@ -1,7 +1,7 @@
|
||||
# bash_completion - programmable completion functions for bash 3.x
|
||||
# (backwards compatible with bash 2.05b)
|
||||
#
|
||||
# $Id: bash_completion,v 1.870 2006/03/01 10:22:43 ianmacd Exp $
|
||||
# $Id: bash_completion,v 1.871 2006/03/01 13:15:43 ianmacd Exp $
|
||||
#
|
||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||
#
|
||||
@ -2431,9 +2431,9 @@ _known_hosts()
|
||||
|
||||
if [ ${#config[@]} -gt 0 ]; then
|
||||
# expand path (if present) to global known hosts file
|
||||
global_kh=$( eval echo $( sed -ne 's/^[Gg][Ll][Oo][Bb][Aa][Ll][Kk][Nn][Oo][Ww][Nn][Hh][Oo][Ss][Tt][Ss][Ff][Ii][Ll][Ee]['$'\t '']*\(.*\)$/\1/p' ${config[@]} ) )
|
||||
global_kh=$( eval echo $( sed -ne 's/^[Gg][Ll][Oo][Bb][Aa][Ll][Kk][Nn][Oo][Ww][Nn][Hh][Oo][Ss][Tt][Ss][Ff][Ii][Ll][Ee]['"$'\t '"']*\(.*\)$/\1/p' ${config[@]} ) )
|
||||
# expand path (if present) to user known hosts file
|
||||
user_kh=$( eval echo $( sed -ne 's/^[Uu][Ss][Ee][Rr][Kk][Nn][Oo][Ww][Nn][Hh][Oo][Ss][Tt][Ss][Ff][Ii][Ll][Ee]['$'\t '']*\(.*\)$/\1/p' ${config[@]} ) )
|
||||
user_kh=$( eval echo $( sed -ne 's/^[Uu][Ss][Ee][Rr][Kk][Nn][Oo][Ww][Nn][Hh][Oo][Ss][Tt][Ss][Ff][Ii][Ll][Ee]['"$'\t '"']*\(.*\)$/\1/p' ${config[@]} ) )
|
||||
fi
|
||||
|
||||
# choose which global known hosts file to use
|
||||
|
Loading…
x
Reference in New Issue
Block a user