diff --git a/bash-completion-1.2-known_hosts-ipv6-630658.patch b/bash-completion-1.2-known_hosts-ipv6-630658.patch index 40a279e..137ca8d 100644 --- a/bash-completion-1.2-known_hosts-ipv6-630658.patch +++ b/bash-completion-1.2-known_hosts-ipv6-630658.patch @@ -1,8 +1,31 @@ -diff --git a/bash_completion b/bash_completion -index f7e1a28..98f35ca 100644 --- a/bash_completion +++ b/bash_completion -@@ -1298,8 +1298,7 @@ _known_hosts_real() +@@ -1259,16 +1259,16 @@ _known_hosts_real() + awkcur=${awkcur//\./\\\.} + curd=$awkcur + +- if [[ "$awkcur" == [0-9]*.* ]]; then +- # Digits followed by a dot - just search for that +- awkcur="^$awkcur.*" ++ if [[ "$awkcur" == [0-9]*[.:]* ]]; then ++ # Digits followed by a dot or a colon - just search for that ++ awkcur="^$awkcur[.:]*" + elif [[ "$awkcur" == [0-9]* ]]; then +- # Digits followed by no dot - search for digits followed +- # by a dot +- awkcur="^$awkcur.*\." ++ # Digits followed by no dot or colon - search for digits followed ++ # by a dot or a colon ++ awkcur="^$awkcur.*[.:]" + elif [ -z "$awkcur" ]; then +- # A blank - search for a dot or an alpha character +- awkcur="[a-z.]" ++ # A blank - search for a dot, a colon, or an alpha character ++ awkcur="[a-z.:]" + else + awkcur="^$awkcur" + fi +@@ -1278,8 +1278,7 @@ _known_hosts_real() COMPREPLY=( "${COMPREPLY[@]}" $( awk 'BEGIN {FS=","} /^\s*[^|\#]/ {for (i=1; i<=2; ++i) { \ gsub(" .*$", "", $i); \ diff --git a/bash-completion.spec b/bash-completion.spec index a2926fd..a8a533c 100644 --- a/bash-completion.spec +++ b/bash-completion.spec @@ -3,7 +3,7 @@ Name: bash-completion Version: 1.2 -Release: 3%{?dist} +Release: 4%{?dist} Epoch: 1 Summary: Programmable completion for Bash @@ -363,6 +363,9 @@ fi %changelog +* Tue Oct 5 2010 Ville Skyttä - 1:1.2-4 +- More IPv6 address completion fixes, #630658. + * Tue Sep 28 2010 Ville Skyttä - 1:1.2-3 - Apply upstream ~username completion fix for #628130. - Apply upstream rpm completion improvements for #630328.