zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: dana <dana@dana.is>
Cc: Zsh workers <zsh-workers@zsh.org>
Subject: Re: [PATCH] Completion: Add _hostname (+ a question)
Date: Mon, 18 Jun 2018 01:02:06 +0200	[thread overview]
Message-ID: <1535.1529276526@thecus> (raw)
In-Reply-To: <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


  reply	other threads:[~2018-06-17 23:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-17 22:20 dana
2018-06-17 23:02 ` Oliver Kiddle [this message]
2018-06-18  0:35   ` dana

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=1535.1529276526@thecus \
    --to=okiddle@yahoo.co.uk \
    --cc=dana@dana.is \
    --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).