mirror of
https://github.com/tests-always-included/mo.git
synced 2024-12-18 16:27:52 +00: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
|
# the array slicing to work regardless of the current IFS setting on
|
||||||
# bash 3. This is detailed further at
|
# bash 3. This is detailed further at
|
||||||
# https://github.com/fidian/gg-core/pull/7
|
# https://github.com/fidian/gg-core/pull/7
|
||||||
IFS= eval "$1=(\"\${@:2}\")"
|
eval "$(printf "IFS= %s=(\"\${@:2}\") IFS=%q" "$1" "$IFS")"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user