From 4a2581cd2e207b32aa6b0cd5ba3aefbf6672fca9 Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Thu, 4 Sep 2014 21:49:37 +0400 Subject: [PATCH] bug --- lib/ulib/base | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ulib/base b/lib/ulib/base index 852a692..3513247 100644 --- a/lib/ulib/base +++ b/lib/ulib/base @@ -144,9 +144,9 @@ function seta() { # note: en principe, la syntaxe est 'seta var cmd args...'. cependant, la # syntaxe 'seta var=cmd args...' est supportée aussi local __s_array="$1"; shift - if [[ "$__s_var" == *=* ]]; then - set -- "${__s_var#*=}" "$@" - __s_var="${__s_var%%=*}" + if [[ "$__s_array" == *=* ]]; then + set -- "${__s_array#*=}" "$@" + __s_array="${__s_array%%=*}" fi eval "$__s_array=($("$@" | qlines))" }