From dbc3daa7379ae9a20e3f6cdee9f20daf6ab035dc Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Tue, 19 Sep 2017 08:19:12 +0400 Subject: [PATCH] multiconf: bug --- lib/ulib/multiconf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ulib/multiconf b/lib/ulib/multiconf index 2624a36..1059582 100644 --- a/lib/ulib/multiconf +++ b/lib/ulib/multiconf @@ -143,7 +143,7 @@ function conf_load_files() { else # faire une correction de l'expression parce que la commande # affichée par declare -p est différente entre bash 4.3 et bash - # 4.4 pour les tableaux. pour le tableau array=(a b) on aura: + # 4.4 pour les tableaux. soit le tableau array=(a b) # - bash 4.3 affiche declare -a array='([0]="a" [1]="b")' # - bash 4.4 affiche declare -a array=([0]="a" [1]="b") __conf_backup="${__conf_backup#declare }" @@ -153,7 +153,7 @@ function conf_load_files() { __conf_bn="${__conf_bv%%=*}" __conf_bv="${__conf_bv#*=}" if [ "${__conf_bv:0:2}" == "'(" -a "${__conf_bv: -2:2}" == ")'" ]; then - __conf_backup="$__conf_bn=${__conf_bv:1: -1}" + __conf_backup="$__conf_bn=$(eval "echo $__conf_bv")" else __conf_backup="$__conf_bn=$__conf_bv" fi