[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 2f78769d6537e936a4981e641eb75d229da81d98
Freddy Vulto
fvulto at gmail.com
Sun Jan 17 09:43:50 UTC 2010
The following commit has been merged in the master branch:
commit 2f78769d6537e936a4981e641eb75d229da81d98
Author: Freddy Vulto <fvulto at gmail.com>
Date: Sun Jan 17 10:41:13 2010 +0100
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
diff --git a/bash_completion b/bash_completion
index 6478062..6b03e93 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//\"}
--
bash-completion
More information about the Bash-completion-commits
mailing list