zsh-workers
 help / color / Atom feed
From: dana <dana@dana.is>
To: Bruno Bazille <bruno@bazille.fr>
Cc: zsh-workers@zsh.org
Subject: Re: ssh completion on Catalina
Date: Thu, 31 Oct 2019 18:30:00 -0500
Message-ID: <1BB87AFF-61AD-4CEA-A3FB-04C64B912BF1@dana.is> (raw)
In-Reply-To: <7CB24DE1-D0F7-45AF-81D4-1D00B8EB0635@bazille.fr>

On 31 Oct 2019, at 09:01, Bruno Bazille <bruno@bazille.fr> wrote:
> If I write partial name which doesn’t exist, completion takes 30 seconds
> before error message :
>
> ssh: Could not resolve hostname dlfgkmd: nodename nor servname provided, or
> not known

I don't think ssh actually gets called when just parsing the hosts, so maybe
that's from _remote_files or something? But i still wouldn't expect it to
print out garbage like that.

On 31 Oct 2019, at 09:01, Bruno Bazille <bruno@bazille.fr> wrote:
> Note, today I have 520 servers description in my .ssh/config file

All of the parsing happens in a shell function, so it's possible that with a
complex enough configuration file it might take a long time... but it's hard
to say. I wouldn't expect it to get too slow until it hit like many thousands
of lines. And even then i'm not sure why it would differ between Mojave and
Catalina.

It would be ideal if you could attach the trace file you got from
_complete_debug. You can xxx out the IP addresses, host names, and user names,
if you need to. It's hard to know what it's really doing otherwise. At least,
i don't have any ideas myself.

dana


      reply index

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-21  7:41 Bruno Bazille
2019-10-23  9:36 ` dana
2019-10-31 13:53   ` Bruno Bazille
2019-10-31 14:01     ` Bruno Bazille
2019-10-31 23:30       ` dana [this message]

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1BB87AFF-61AD-4CEA-A3FB-04C64B912BF1@dana.is \
    --to=dana@dana.is \
    --cc=bruno@bazille.fr \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

zsh-workers

Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-workers

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.workers


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git