Removed awk regexp character classes.
On Debian/Ubuntu, awk (mawk 1.3.3 Nov 1996) is not supporting regexp character classes. See also: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=314323 This was causing unit test `_known_hosts_real' to fail. To run the test: ./run unit/_known_hosts_real.exp
This commit is contained in:
parent
942b916aa1
commit
2f78769d65
@ -1288,7 +1288,7 @@ _known_hosts_real()
|
||||
# TODO(?): try to make known hosts files with more than one consecutive
|
||||
# spaces in their name work (watch out for ~ expansion
|
||||
# breakage! Alioth#311595)
|
||||
tmpkh=( $( awk 'sub("^[[:space:]]*([Gg][Ll][Oo][Bb][Aa][Ll]|[Uu][Ss][Ee][Rr])[Kk][Nn][Oo][Ww][Nn][Hh][Oo][Ss][Tt][Ss][Ff][Ii][Ll][Ee][[:space:]]+", "") { print $0 }' "${config[@]}" | sort -u ) )
|
||||
tmpkh=( $( awk 'sub("^[ \t]*([Gg][Ll][Oo][Bb][Aa][Ll]|[Uu][Ss][Ee][Rr])[Kk][Nn][Oo][Ww][Nn][Hh][Oo][Ss][Tt][Ss][Ff][Ii][Ll][Ee][ \t]+", "") { print $0 }' "${config[@]}" | sort -u ) )
|
||||
for i in "${tmpkh[@]}"; do
|
||||
# Remove possible quotes
|
||||
i=${i//\"}
|
||||
|
Loading…
x
Reference in New Issue
Block a user