diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-07-21 15:18:14 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-07-21 15:18:14 -0700 |
commit | 57679a787250499c345437ba0c19a86ba151e7e1 (patch) | |
tree | e25b938266425ace0d889bf4c36dc5936848889b /etc | |
parent | 119d2d838b52541429edf72cc88da6190a1f9389 (diff) | |
download | vyatta-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-x | etc/bash_completion.d/20vyatta-cfg | 2 |
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` |