From 2f78769d6537e936a4981e641eb75d229da81d98 Mon Sep 17 00:00:00 2001 From: Freddy Vulto Date: Sun, 17 Jan 2010 10:41:13 +0100 Subject: [PATCH] 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 --- bash_completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_completion b/bash_completion index 64780626..6b03e939 100644 --- a/bash_completion +++ b/bash_completion @@ -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//\"}