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