summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-11-06 16:10:25 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2007-11-06 16:10:25 -0800
commit6482033bfb5b515f6fd6e05b65439231e374a5cb (patch)
tree8b00124f4c3952def643acc810c72fc44bfb7cae
parentc9007f34576d54f3c6e915de8e06e052b3f7285a (diff)
downloadvyatta-cfg-6482033bfb5b515f6fd6e05b65439231e374a5cb.tar.gz
vyatta-cfg-6482033bfb5b515f6fd6e05b65439231e374a5cb.zip
correctly handle "type help" in completion
-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 26a4e72..c8f6456 100644
--- a/etc/bash_completion.d/20vyatta-cfg
+++ b/etc/bash_completion.d/20vyatta-cfg
@@ -369,7 +369,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")