diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-25 17:51:52 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-25 17:57:08 (EDT) |
commit | 1892976e48679bbe300d772bc27f621c966a7061 (patch) | |
tree | 9399ea1148a3c4d222acbb4906652dcc4ded4e09 /tests/aux/common.sh | |
parent | 56b3636acd3106b46ec0ebfe5a08434a2fd423c1 (diff) |
tests/aux/common.sh: Check whitespace in is_diff()
Diffstat (limited to 'tests/aux/common.sh')
-rw-r--r-- | tests/aux/common.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/aux/common.sh b/tests/aux/common.sh index 3082ab0..82562fd 100644 --- a/tests/aux/common.sh +++ b/tests/aux/common.sh @@ -60,8 +60,8 @@ is_diff() EOF while :; do eof=0 - read -r got 0<&3 || eof=$((${eof} + 1)) - read -r exp 0<&4 || eof=$((${eof} + 2)) + IFS='' read -r got 0<&3 || eof=$((${eof} + 1)) + IFS='' read -r exp 0<&4 || eof=$((${eof} + 2)) [ ${eof} -eq 3 ] && break if [ x"${got}" = x"${exp}" ]; then diag="${diag} '${got}'${LF}" |