Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] Completion: Add _hostname (+ a question)



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