[Bash-completion-devel] hostname completion issues

Freddy Vulto fvulto at gmail.com
Fri Jul 3 20:37:51 UTC 2009


On Wed, Jun 24, 2009 at 10:29 PM, Guillaume
Rousse<Guillaume.Rousse at inria.fr> wrote:
> mandatory means 'always present', not 'not empty'. I'd prefer to keep
> options for optional argument (using getopt for internal functions is
> already awful enough IMHO).
>
> That's exactly the same situation than _filedir, which is supposed to be
> always called for completing a directory name, even if this one is empty. It
> uses a global variable, tough... This makes room for enhancing API
> consistency here.

I changed the `-h hostname' option to `_known_hosts_real' to a
mandatory argument `CWORD' in commit r25e4eb6.  Are you ok with it?

What do you think about renaming `_known_hosts_real' to `_add_known_hosts'?

Greetings, Freddy



More information about the Bash-completion-devel mailing list