From: Danek Duvall <duvall@comfychair.org>
To: Mikael Magnusson <mikachu@gmail.com>
Cc: zsh-workers@zsh.org
Subject: Re: PATCH: Update _bind_addresses to work with new ifconfig output (and old).
Date: Sat, 10 Dec 2011 14:18:21 -0800 [thread overview]
Message-ID: <20111210221821.GE3736@lorien.comfychair.org> (raw)
In-Reply-To: <CAHYJk3TUQ83FkcMVw5Y4+wbpuo5BkRumAKPwHyH9PUBxBDOKGg@mail.gmail.com>
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
[<address>]:<port>
or
<address>/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
prev parent reply other threads:[~2011-12-10 22:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-10 19:32 Mikael Magnusson
2011-12-10 20:14 ` Danek Duvall
2011-12-10 20:26 ` Mikael Magnusson
2011-12-10 22:18 ` Danek Duvall [this message]
Reply instructions:
You may reply publicly 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=20111210221821.GE3736@lorien.comfychair.org \
--to=duvall@comfychair.org \
--cc=mikachu@gmail.com \
--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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).