This commit is contained in:
Jephte CLAIN 2014-09-04 21:49:37 +04:00
parent be6e529385
commit 4a2581cd2e
1 changed files with 3 additions and 3 deletions

View File

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