mirror of
https://github.com/tests-always-included/mo.git
synced 2025-05-03 02:26:30 +02:00
Merge pull request #14 from tests-always-included/fix-ifs-again
Fixing bug with array substrings
This commit is contained in:
commit
387fc478fc
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