diff options
-rw-r--r-- | bash_completion | 2 | ||||
-rw-r--r-- | test/fixtures/_known_hosts_real/known_hosts2 | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bash_completion b/bash_completion index 3bfbf724..02527690 100644 --- a/bash_completion +++ b/bash_completion @@ -1419,7 +1419,7 @@ _known_hosts_real() sub(" .*$", ""); \ for (i=1; i<=NF; ++i) { \ sub("^\\[", "", $i); sub("\\](:[0-9]+)?$", "", $i); \ - if ($i ~ /'"$awkcur"'/) {print $i} \ + if ($i !~ /[*?]/ && $i ~ /'"$awkcur"'/) {print $i} \ }}' "${kh[@]}" 2>/dev/null ) ) fi if [ ${#khd[@]} -gt 0 ]; then diff --git a/test/fixtures/_known_hosts_real/known_hosts2 b/test/fixtures/_known_hosts_real/known_hosts2 index b0926a40..2eb4d4f7 100644 --- a/test/fixtures/_known_hosts_real/known_hosts2 +++ b/test/fixtures/_known_hosts_real/known_hosts2 @@ -1 +1 @@ -two,two2,two3,two4 +two,two2,two3,two*,t?o,two4 |