From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 75 invoked from network); 25 Jun 2007 14:32:38 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.1 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 25 Jun 2007 14:32:38 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 48570 invoked from network); 25 Jun 2007 14:32:32 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Jun 2007 14:32:32 -0000 Received: (qmail 11476 invoked by alias); 25 Jun 2007 14:32:26 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23597 Received: (qmail 11466 invoked from network); 25 Jun 2007 14:32:25 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 25 Jun 2007 14:32:25 -0000 Received: (qmail 48005 invoked from network); 25 Jun 2007 14:32:25 -0000 Received: from acolyte.scowler.net (216.254.112.45) by a.mx.sunsite.dk with SMTP; 25 Jun 2007 14:32:22 -0000 Received: by acolyte.scowler.net (Postfix, from userid 1000) id 56D045C3C6; Mon, 25 Jun 2007 10:32:21 -0400 (EDT) Date: Mon, 25 Jun 2007 10:32:21 -0400 From: Clint Adams To: zsh-workers@sunsite.dk, Pierre Habouzit Subject: Re: Bug#430146: zsh: please add .ssh/config Hosts to the hosts zstyle completion Message-ID: <20070625143221.GA27030@scowler.net> Mail-Followup-To: zsh-workers@sunsite.dk, Pierre Habouzit References: <20070622180648.14337.68045.reportbug@localhost> <20070622211507.GA16349@scowler.net> <20070622222216.GA9656@artemis.internal.dc7.debconf.org> <20070623074721.GA28769@scowler.net> <20070623113320.GA25562@artemis.internal.dc7.debconf.org> <20070624115727.GA31510@scowler.net> <20070624194406.GA73513@redoubt.spodhuis.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070624194406.GA73513@redoubt.spodhuis.org> User-Agent: Mutt/1.5.13 (2006-08-11) On Sun, Jun 24, 2007 at 12:44:06PM -0700, Phil Pennock wrote: > I think that: > ${=${${(M)${(f)"$(<~/.ssh/config)"}:#Host*}#Host }:#*\**} > should be: > ${${=${(M)${(f)"$(<~/.ssh/config)"}:#Host*}#Host }:#*[\*\?]*} > This splits on $IFS earlier so that the outer :# filter applies on a > per-item basis instead of per-line, and adds '?' to the filter pattern. That sounds good. Is limiting it to ~/.ssh/config with a yes/no style too inflexible?