From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 971 invoked by alias); 15 Aug 2015 00:34:33 -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: 36175 Received: (qmail 2223 invoked from network); 15 Aug 2015 00:34:33 -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=-0.3 required=5.0 tests=BAYES_00,TO_NO_BRKTS_PCNT autolearn=no autolearn_force=no version=3.4.0 Date: Sat, 15 Aug 2015 02:34:30 +0200 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Re: ssh host completion: ~/.ssh/config vs /etc/hosts Message-ID: <20150815003430.GB2043@zira.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org References: <20150810103355.GH4077@bunkus.org> <150810125039.ZM1691@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <150810125039.ZM1691@torch.brasslantern.com> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.23-6477-vl-r81226 (2015-08-07) On 2015-08-10 12:50:39 -0700, Bart Schaefer wrote: > On Aug 10, 12:33pm, Moritz Bunkus wrote: > } > } I just noticed this interesting thing: if certain hosts are listed in > } /etc/hosts then the ssh completion will complete _but not list_ hosts in > } ~/.ssh/config that have the same prefix. > > At the very top of _ssh_hosts is: > > # If users-hosts matches, we shouldn't complete anything else. > > The users-hosts completion looks at /etc/hosts and ~/.ssh/known_hosts, > so hosts from your ~/.ssh/config are only completed when no possible > matches are found in either of those other places. This behavior doesn't make much sense. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)