From 1892976e48679bbe300d772bc27f621c966a7061 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 25 Apr 2019 17:51:52 -0400 Subject: tests/aux/common.sh: Check whitespace in is_diff() --- 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}" -- cgit v0.9.1