mirror of
https://github.com/tests-always-included/mo.git
synced 2025-08-20 14:36:31 +02:00
Fixing bug with array substrings
Found on tests-always-included/wick#113 This was the solution first suggested by fidian/gg-core#7
This commit is contained in:
parent
62478ba084
commit
c2979c0fb8
2
mo
2
mo
@ -343,7 +343,7 @@ moIndirectArray() {
|
||||
# the array slicing to work regardless of the current IFS setting on
|
||||
# bash 3. This is detailed further at
|
||||
# https://github.com/fidian/gg-core/pull/7
|
||||
IFS= eval "$1=(\"\${@:2}\")"
|
||||
eval "$(printf "IFS= %s=(\"\${@:2}\") IFS=%q" "$1" "$IFS")"
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user