From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16689 invoked by alias); 11 Aug 2015 12:45:53 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36098 Received: (qmail 13963 invoked from network); 11 Aug 2015 12:45:50 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bunkus.org; s=mail2015070101; t=1439297138; bh=eV6UU+51R3d4JrepxS4eBNan8PPxFCPc4Y3LtW8klJc=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=VcBjOUE0w2NoaxASYvPHa1RIpHGTwHMT2rrvGRDi/J4UpmBj0tSz7NYCvFfNH2U7n gjE2jJxbL1Ekr/iNk/d/D02OdDjnEgn/xMSxkLhvUfhC1JJ8CWOXk3ynaj+upLd0/5 RAXVw4iE6kx075mfjkZZuzM0LsbEh+yUqFn0BkrUJ5q2yEgvALGX76EEFpFisWvPWS Cg7NZwz/k+q2XyaRBBkV5xvgtRHeGlavH75f1xqXXSb1b1bVt7qY3nhFRvr9F6vxd+ 4AqB8OdEh6dWz4etkigb62POdbUIo479MRvDCs4R7zEcFkckRYL7gSqBkAOhpwvUJA CZfxM+j9vrSW5Y1tEHqwq8sm5icThonSOAGU62kw7WsdKWtx/hnK6rcd/1oBCKVpLE LcN1gupsm+GQibFSses3agnmY6Ju1iE1Gmi7TgaXnCO5Pqd8s2eipR5Nz47hRBTAEi O3VbFBljewqiIrMAaU3SjEoYtbLvPW1NYNEIR5o6uaOoE0OuuTufnaRKFZco9LZwQw 1WUp4nXph/jS+yf8AgpRdq5zyMepAt6S+RZcDBFSU0Nma04cqXn8msXQbqTyK0WvBS 4uePdY1+QXjVAKgPsjfKQdDo5BF2/h3Y64iO6g2SBP/FUpKPF6PqmUnW9YiR0QCJA2 V4eKNhKHwrcOAJRWuqO5i2Ms= Date: Tue, 11 Aug 2015 14:45:37 +0200 From: Moritz Bunkus To: Bart Schaefer Cc: zsh-workers@zsh.org Subject: Re: ssh host completion: ~/.ssh/config vs /etc/hosts Message-ID: <20150811124536.GA5160@bunkus.org> References: <20150810103355.GH4077@bunkus.org> <150810125039.ZM1691@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline In-Reply-To: <150810125039.ZM1691@torch.brasslantern.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 X-Virus-Scanned: clamav-milter 0.98.7 at liselle X-Virus-Status: Clean --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey, thanks for the pointer, Bart. Reverting the patch mentioned in > http://www.zsh.org/mla/users/2007/msg00233.html restores the behavior I want (and which I find less confusing, to be honest): =C2=BBssh testme-=C2=AB now lists both the entries from /etc/= hosts as well as those from ~/.ssh/config. > It seems a bit odd that this kicks in when there is no user-name part > in the word being completed. Even adding user@ I would expect all possible hosts to be listed, not just the ones from /etc/hosts=E2=80=A6 To me the current behavior looks lik= e a bug. Why should entries from /etc/hosts be exclusive in any shape or form? What makes them more special? Note that I'm not really arguing against what the user in msg00233.html wants to do. I'm talking about ssh completion's default behavior. Solely =66rom the point of view of ease of use. Kind regards, mosu --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCAAGBQJVye5rAAoJEHSvAK3y4yyFXF0P/3sQXBWlfg8VUt7CtE8yvPSA LLvS4Q4/9iom9Nh9BpfSv1SdhQ+8u21v3DARJ7Q5VNL7vaHCI3PlatXH3/LULGv7 ucI/CsoscBueiKAuXiCLleGwhq3XSzfEMRH/8kpENBDP8d4N/yEQwJxhfeRfZMjY zpD+KFUDNwGzNH/jNmz67Svxet04U5bZW6rVF/9d2M8Rv3JWhfj4DFfxuoLYxQ48 W+KPJuuYcNTQWrQL3p6GI+M1VUavHNiN9S3SyuWQBSQR+nMS5NhVmVzRzq/BaoY+ btkryZ6NpN5Q+uqAZDiLAa0O/RoOUxOXG11+I9U4foQ1+YT70hZsWdF5p+guel1k VY09JQfoRo0tOciN+avb5PGyi/U6il9UcrbJDPTEs4AowlB4zVlU5MrYSp5O0d8q 9tjGjibIU77hDQrirSA9nkqHa4LzBw+kde45XajbgEDGh3T0VqffUUz/n1gQwgjh HACQB4V0iPe8N9PQEpDIgDt8BoJraMch/1srbk56HDY7Se9Rq248RYOEG8B/BoDn YBCPx7IC1JRV0d+FEpt5TNx42eXSC5ZSitSOqer7Ge///WheQPo1F8PpJz8YCFFP bsTbNPJUd0BJs60J3wPGzdHpn/ySO12GKLx8sRj/eN4P6yERW0UL5E2fhBYHPXHX zTMWkpZJPgJ7iVX66mMr =f7Wi -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf--