diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-25 17:52:47 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-25 17:52:47 (EDT) |
commit | 0d633fbd26200bb06b4f26477464f4228bcf650c (patch) | |
tree | 33c51cde5594aba0039d7e09e56dff9132c00747 /tests | |
parent | 7d34bb69db71d4309e852975072410d498b67337 (diff) |
tests/aux/common.sh: Check whitespace in cmd_is()
Diffstat (limited to 'tests')
-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 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 |