diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2006-02-04 16:28:53 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2006-02-04 16:28:53 +0000 |
commit | be3f4d897f7d9853b9193379db6cfd7da8791f2d (patch) | |
tree | 11f4a861bf7bd28daec64233c3b5194eade3ff12 /Completion | |
parent | dfea4c5eaa685ba8c7bff59dff5243ed5f428bf1 (diff) | |
download | zsh-be3f4d897f7d9853b9193379db6cfd7da8791f2d.tar.gz zsh-be3f4d897f7d9853b9193379db6cfd7da8791f2d.tar.xz zsh-be3f4d897f7d9853b9193379db6cfd7da8791f2d.zip |
22192: remove comments from .ssh/known_hosts
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Unix/Type/_hosts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Type/_hosts b/Completion/Unix/Type/_hosts index 7d88a4532..8a77b3db6 100644 --- a/Completion/Unix/Type/_hosts +++ b/Completion/Unix/Type/_hosts @@ -23,7 +23,7 @@ if ! zstyle -a ":completion:${curcontext}:hosts" hosts _hosts; then fi if [[ -r ~/.ssh/known_hosts ]]; then - _cache_hosts+=(${${${(u)${(f)"$(<~/.ssh/known_hosts)"}%%[ ,]*}:#(#s)[0-9]##.[0-9]##.[0-9]##.[0-9]##(#e)}:#(#s)[0-9a-f:]##(#e)}) + _cache_hosts+=(${${${(u)${(f)"$(<~/.ssh/known_hosts)"}%%[ ,#]*}:#(#s)[0-9]##.[0-9]##.[0-9]##.[0-9]##(#e)}:#(#s)[0-9a-f:]##(#e)}) fi fi |