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))" }