bug
This commit is contained in:
parent
be6e529385
commit
4a2581cd2e
|
@ -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))"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue