summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-03-20 10:18:39 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2008-03-20 10:18:39 -0700
commit50ee96499609f9bd229e6d06a7ce57a17e9e4c52 (patch)
tree5c46af4f9478e2fdbf2fde4e24548a9399496ad7 /etc
parentfc22d48e028cd1fcddaf6d8af53fd94ca625e63c (diff)
downloadvyatta-cfg-50ee96499609f9bd229e6d06a7ce57a17e9e4c52.tar.gz
vyatta-cfg-50ee96499609f9bd229e6d06a7ce57a17e9e4c52.zip
fix for bug 3037: shell completion
Diffstat (limited to 'etc')
-rwxr-xr-xetc/bash_completion.d/20vyatta-cfg3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/bash_completion.d/20vyatta-cfg b/etc/bash_completion.d/20vyatta-cfg
index 4ad86ce..7968cec 100755
--- a/etc/bash_completion.d/20vyatta-cfg
+++ b/etc/bash_completion.d/20vyatta-cfg
@@ -440,7 +440,8 @@ vyatta_parse_tmpl ()
vyatta_cfg_comp_help=$(vyatta_parse_tmpl_comp_fields $1 "comp_help")
if (( ${#vyatta_cfg_allowed[@]} == 0 )); then
- local -a ares=( $(eval "$acmd") )
+ astr=$(eval "$acmd")
+ eval "ares=( $astr )"
for (( i=0 ; i<${#ares[@]} ; i++ )); do
if [[ "${ares[i]}" != \<*\> ]]; then
vyatta_cfg_allowed+=( "${ares[i]}" )