diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2010-01-16 11:33:18 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2010-01-16 11:41:07 +0200 |
commit | 7a4e09a6ac294c32bc91e119e708243945024633 (patch) | |
tree | 40cfb12f27dc02643284240124e661a5e9f34183 | |
parent | e8f6edc5af1c2694715708924518b2bbe07daeee (diff) | |
download | bash-completion-7a4e09a6ac294c32bc91e119e708243945024633.tar.gz |
Drop -m from --in etc completion getters.
http://lists.alioth.debian.org/pipermail/bash-completion-devel/2010-January/002453.html
-rw-r--r-- | contrib/ipv6calc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/ipv6calc b/contrib/ipv6calc index 142e19ec..dca4c144 100644 --- a/contrib/ipv6calc +++ b/contrib/ipv6calc @@ -14,7 +14,8 @@ _ipv6calc() return 0 ;; -I|--in|-O|--out|-A|--action) - COMPREPLY=( $( compgen -W "$( ipv6calc -m "$prev" -h 2>&1 | \ + # With ipv6calc < 0.73.0, -m does nothing here, so use sed instead. + COMPREPLY=( $( compgen -W "$( ipv6calc "$prev" -h 2>&1 | \ sed -ne 's/^[[:space:]]\{1,\}\([^[:space:]:]\{1,\}\)[[:space:]]*:.*/\1/p' )" \ -- "$cur" ) ) return 0 |