From 6482033bfb5b515f6fd6e05b65439231e374a5cb Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Tue, 6 Nov 2007 16:10:25 -0800 Subject: correctly handle "type help" in completion --- 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 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") -- cgit v1.2.3