From 890cdae32ae24bc74ccddf1a3f1da87e35801155 Mon Sep 17 00:00:00 2001 From: Isaac Good Date: Sun, 1 Sep 2019 16:39:43 -0700 Subject: [PATCH] Do not change the value of IFS; instead, use readarray to read into an array --- libexec/bats-exec-test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/bats-exec-test b/libexec/bats-exec-test index 8f3bd51..e375249 100755 --- a/libexec/bats-exec-test +++ b/libexec/bats-exec-test @@ -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