summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-07-21 15:18:14 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-07-21 15:18:14 -0700
commit57679a787250499c345437ba0c19a86ba151e7e1 (patch)
treee25b938266425ace0d889bf4c36dc5936848889b /etc
parent119d2d838b52541429edf72cc88da6190a1f9389 (diff)
downloadvyatta-cfg-57679a787250499c345437ba0c19a86ba151e7e1.tar.gz
vyatta-cfg-57679a787250499c345437ba0c19a86ba151e7e1.zip
fix for bug 5887
* handle possible space in multi-type parsing.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/bash_completion.d/20vyatta-cfg2
1 files changed, 1 insertions, 1 deletions
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`