From bd6e7215acb683e183e4cf70e21bcb68689c804b Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Wed, 21 Jul 2010 10:01:09 -0700 Subject: support ipv4range and ! in val_help --- etc/bash_completion.d/20vyatta-cfg | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'etc/bash_completion.d') diff --git a/etc/bash_completion.d/20vyatta-cfg b/etc/bash_completion.d/20vyatta-cfg index 470b54d..d14e9eb 100755 --- a/etc/bash_completion.d/20vyatta-cfg +++ b/etc/bash_completion.d/20vyatta-cfg @@ -820,6 +820,10 @@ is_setting_new_leaf () get_value_format_string () { local vtype=$1 + if [[ $vtype = !* ]]; then + echo -n '!' + vtype="${vtype#!}" + fi case "$vtype" in _*) echo -n "${vtype#_}" @@ -845,6 +849,9 @@ get_value_format_string () ipv6net) echo -n '' ;; + ipv4range) + echo -n '-' + ;; bool) echo -n '' ;; -- cgit v1.2.3