summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-10-31 15:54:19 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2007-10-31 15:54:19 -0700
commit45f0f4e2336f339ec0deefcd17a1892d0274e1e6 (patch)
tree02cce83e0df14d8f6ed7b12e9cab1e6d3e4b81c6
parent03aa6e3af09e3d12d877d459a973898a12b2e5ee (diff)
downloadvyatta-cfg-45f0f4e2336f339ec0deefcd17a1892d0274e1e6.tar.gz
vyatta-cfg-45f0f4e2336f339ec0deefcd17a1892d0274e1e6.zip
ignore trailing spaces in config templates
-rw-r--r--etc/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 ddfe360..b4449c8 100644
--- a/etc/bash_completion.d/20vyatta-cfg
+++ b/etc/bash_completion.d/20vyatta-cfg
@@ -360,7 +360,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
' $1`
local acmd=$(vyatta_parse_tmpl_comp_fields $1 "allowed")