From 25c9885a8c62da8b9b55c4a3424e288f1844850c Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 13 Mar 2020 15:59:26 -0500 Subject: More sh tests. --- scripts/runtest.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/runtest.sh b/scripts/runtest.sh index 04af2f8b..325cb1e4 100644 --- a/scripts/runtest.sh +++ b/scripts/runtest.sh @@ -202,7 +202,7 @@ txpect() case ${1::1} in # send input to child - I) echo -en "${1:1}" >&$IN || { do_fail;break;} ;; + I) printf %s "${1:1}" >&$IN || { do_fail;break;} ;; # check output from child [OE]) @@ -211,7 +211,7 @@ txpect() [ ${1::1} == 'E' ] && O=$ERR A= read -t2 $LARG A <&$O - [ "$VERBOSE" == xpect ] && echo "$A" >&2 + [ "$VERBOSE" == xpect ] && printf '%s\n' "$A" >&2 if [ $LEN -eq 0 ] then [ -z "$A" ] && { do_fail;break;} -- cgit v1.2.3