Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Completion: Add _hostname (+ a question)
- X-seq: zsh-workers 43045
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: dana <dana@xxxxxxx>
- Subject: Re: [PATCH] Completion: Add _hostname (+ a question)
- Date: Mon, 18 Jun 2018 01:02:06 +0200
- 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=1529276534; bh=gtKWMFbZm/a/sBuKRHm8NguC/6caUMxePxQYd8A8LzM=; h=From:References:To:Subject:Date:From:Subject; b=nRu8TdkqVsrlIQf0liuXOUHQdR2ThJFEr0MCHcoT3j/qe/As3SVgRIn0tDZvgH4RC5onll4tJehkeEm6jZuBEcJ0xY7aWAe4Bnxmu3ovCu15z5HcnDMpxJfvhvr3noZuAx6JunxosKjHgnu1xl7/Ig+5e9KJhJMTUW0bWFe4fK1Dv3nluHA4OQQKhs+MO2lYjdb4dQTunN7RIrfe//piypJW03dTiL+dghrT61vRld6pnoiytzfWa3d3nTsJe6FUWVHXsHTX/bm95siyy+JbcHSP1zBhMmLfe/OAIeEznEzs3qG0W58RQjTDhBOvoOTjtSvupZj4pgzZBKJ1YVHLFQ==
- In-reply-to: <6B9F94D1-6E43-4970-8571-C935B6167EB0@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: <6B9F94D1-6E43-4970-8571-C935B6167EB0@dana.is>
dana wrote:
>
> Instead of doing my own thing here, would there be any issue with my changing
> _bind_addresses to unconditionally return the actual interface addresses using a
Fixing _bind_addresses should be fine.
> +#compdef hostname
> +if _pick_variant net-tools=--yp unix --help; then
We can't do this. On some systems, e.g. Solaris, this will change the
system's hostname to "--help" if someone tries to complete hostname as
root.
Perhaps only call this on Linux.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author