The following commit has been merged in the master branch:
commit 878c9dd5c9fa8cf195d1246d2611fc19d7604408
Author: Ville Skyttä <[email protected]>
Date: Sat Jan 16 15:22:49 2010 +0200
Fix finding known hosts files from SSH configs on systems with non-GNU sed.
There's no alternation functionality ('\|' or '|') in POSIX BRE.
diff --git a/bash_completion b/bash_completion
index 1ac5bf4..dea0b19 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=( $( sed -ne 's/^[
\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
'"']*\(.*\)$/\2/p' "${conf...@]}" | sort -u ) )
+ 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 }' "${conf...@]}" | sort -u ) )
for i in "${tmp...@]}"; do
# Remove possible quotes
i=${i//\"}
--
bash-completion
_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits