From 0d633fbd26200bb06b4f26477464f4228bcf650c Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 25 Apr 2019 17:52:47 -0400 Subject: tests/aux/common.sh: Check whitespace in cmd_is() --- (limited to 'tests/aux') diff --git a/tests/aux/common.sh b/tests/aux/common.sh index 2da887e..4d41d9a 100644 --- a/tests/aux/common.sh +++ b/tests/aux/common.sh @@ -49,8 +49,8 @@ cmd_is() EOF while :; do eof=0 - read -r got <&3 || eof=$((${eof} + 1)) - read -r exp <&0 || eof=$((${eof} + 2)) + IFS='' read -r got <&3 || eof=$((${eof} + 1)) + IFS='' read -r exp <&0 || eof=$((${eof} + 2)) [ ${eof} -eq 3 ] && break [ x"${got}" = x"${exp}" ] && continue if ${ok}; then -- cgit v0.9.1