Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG/RFC] IPv6 host:port completion needs work
- X-seq: zsh-workers 44061
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: dana <dana@xxxxxxx>
- Subject: Re: [BUG/RFC] IPv6 host:port completion needs work
- Date: Mon, 11 Feb 2019 18:25:29 +0100
- Authentication-results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.co.uk
- Cc: Zsh workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1549905931; bh=62rAWgPyGiGm5CLxxEVR5K9fRAC9CAat9tR60AMwKaI=; h=From:References:To:Subject:Date:From:Subject; b=WNQ3aB48yzchnp+dcta3oDI0Kl2UlMC2OmPL6yDkHA4CXlo2qq0u8EFy++Vzt4p0kzXuWreNtdw/MDqtrBNyoFI0fAxD/B7UV7Y7JGORSl+FVOadc9Fv+y/iYAXuSb0OkPF8Zr3JTUeSlFF/y6kHFZzMpTf8QUyKTHjPy46U3SFFz3XKe1OukyJYaviq3/CxiPMvnarLmMaFQEPdADmCtrAtHL6eJdH/B61QLogLWcUqx/V88DPYGePQB5Cee5TB89TsPwn+/Ul/Vpogc106qhiXvhVY+gS7WNN2vRO6S//0DT4VscyGduRSOG2sMmiXQBq88R3CujgdDq5L5oaUZg==
- In-reply-to: <B48BBD05-1944-4106-B65D-82DD6F761523@dana.is>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <B48BBD05-1944-4106-B65D-82DD6F761523@dana.is>
On 5 Feb, dana wrote:
> I could update _hosts itself to take an option telling it to do two compadd
> passes, one with -p\[ -s\] (for hosts matching *:*) and one without (for the
> rest). That's similar in concept to what i did to _bind_addresses for
> workers/43207. But is that the best way? Am i overlooking something?
Yes, the approach taken in _bind_addresses where -b indicates that
IPv6 addresses need quoting with square brackets seems good to me.
_hosts_ports could also accept it and pass it on down.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author