mirror of
https://github.com/sstephenson/bats.git
synced 2024-11-17 03:32:27 +01:00
Do not change the value of IFS; instead, use readarray to read into an array
This commit is contained in:
parent
03608115df
commit
890cdae32a
|
@ -58,7 +58,7 @@ run() {
|
|||
output="$("$@" 2>&1)"
|
||||
status="$?"
|
||||
oldIFS=$IFS
|
||||
IFS=$'\n' lines=($output)
|
||||
readarray -t lines <<< "$output"
|
||||
[ -z "$e" ] || set -e
|
||||
[ -z "$E" ] || set -E
|
||||
[ -z "$T" ] || set -T
|
||||
|
|
Loading…
Reference in New Issue
Block a user