summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
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]}" )