From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12252 invoked by alias); 10 Dec 2011 22:18:39 -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: 29994 Received: (qmail 19248 invoked from network); 10 Dec 2011 22:18:27 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,RDNS_DYNAMIC, SPF_HELO_SOFTFAIL autolearn=no version=3.3.2 Received-SPF: softfail (ns1.primenet.com.au: transitioning SPF record at lorien.comfychair.org does not designate 173.8.144.102 as permitted sender) Date: Sat, 10 Dec 2011 14:18:21 -0800 From: Danek Duvall To: Mikael Magnusson Cc: zsh-workers@zsh.org Subject: Re: PATCH: Update _bind_addresses to work with new ifconfig output (and old). Message-ID: <20111210221821.GE3736@lorien.comfychair.org> Mail-Followup-To: Danek Duvall , Mikael Magnusson , zsh-workers@zsh.org References: <1323545572-10775-1-git-send-email-mikachu@gmail.com> <20111210201454.GD3736@lorien.comfychair.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2010-04-22) On Sat, Dec 10, 2011 at 09:26:46PM +0100, Mikael Magnusson wrote: > Thanks, I've updated the patch. Does it complete ipv6 addresses if you > add 6(#c0,1) after the second inet instead? > ${${${(M)${(f)"$(ifconfig -a)"}:#*inet*}##*inet6(#c0,1) (addr:)(#c0,1)}%% *} Yes, but, as you saw, with the network prefix length, too. Putting that expression in ${...%/<->} seems to remove the length for me. > But maybe if it's an inet6 it should also be surrounded by [], I'm not > super familiar with ipv6 and what programs expect since I don't use it. Yeah, I'm not positive what ssh expects here. Looks like either [
]: or
/port would work, which makes sense, as neither syntax is ambiguous. But the ssh on Solaris is forked from openssh, so I can't say how a pure openssh implementation would be. Danek