[Bash-completion-devel] completion for ipv6calc

Ville Skyttä ville.skytta at iki.fi
Sat Jan 16 09:34:49 UTC 2010


On Friday 15 January 2010, Adrian Friedli wrote:
> Hallo
> 
> On Thursday 14 January 2010 20:21:21 Ville Skyttä wrote:
> > Added to git with the following changes:
> >
> > - Filtered cruft from --in/--out/--action completions; at least my
> > ipv6calc returns more than just the options, e.g. stuff like:
> >
> > $ ipv6calc --action -h
> > ipv6calc: version 0.72.2
> > (P) & (C) 2001-2008 by Peter Bieringer <pb (at) bieringer.de>
> >
> >  Available action types:
> >   auto          : Automatic selection of action (default)
> >   geneui64      : Converts a MAC address to an EUI-64 address
> >   conv6to4      : Converts IPv4 address <-> 6to4 IPv6 address (prefix)
> >   genprivacyiid : Generates a privacy interface ID out of a given one and
> > a token anonymize     : Anonymize IPv4/IPv6 address without loosing much
> > information prefixmac2ipv6: Generates an IPv6 address out of a prefix and
> > a MAC address
> 
> You missed the -m in the call, ipv6calc will print the options in machine
> readable form, just ready to use.

Thanks for the heads up, but it doesn't in 0.72.2; according to docs in it -m 
applies only to -i/--show-information, and for example adding -m to the 
command above produces the same output as without it.  Using -m with --in -h 
and friends seems to be a >= 0.73.0 feature.

> Either remove sed or the -m.

Will drop the -m and add a comment about this.



More information about the Bash-completion-devel mailing list