From 57679a787250499c345437ba0c19a86ba151e7e1 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Wed, 21 Jul 2010 15:18:14 -0700 Subject: fix for bug 5887 * handle possible space in multi-type parsing. --- etc/bash_completion.d/20vyatta-cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/bash_completion.d/20vyatta-cfg b/etc/bash_completion.d/20vyatta-cfg index d14e9eb..cb5e0dc 100755 --- a/etc/bash_completion.d/20vyatta-cfg +++ b/etc/bash_completion.d/20vyatta-cfg @@ -672,7 +672,7 @@ vyatta_parse_tmpl () } s/^tag:.*/vyatta_cfg_tag=1/p s/^multi:.*/vyatta_cfg_multi=1/p - s/^type:[ ]\+\([^ ;]\+\)\(;.*\)\?/vyatta_cfg_type=\1/p + s/^type:[ ]*\([^;]\+[^; ]\)[ ]*\(;.*\)\?$/vyatta_cfg_type="\1"/p s/^enumeration:[ ]\+\([^ ]\+\)/vyatta_cfg_enum=\1/p ' $1` -- cgit v1.2.3