From 51a515de1cf090710745d71a67e02712fde44a11 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 27 May 2026 12:34:31 -0500 Subject: [PATCH] Don't print empty $5 (stdin) for runtest.sh failures. --- scripts/runtest.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/runtest.sh b/scripts/runtest.sh index 9ee6cd80..48cebca7 100644 --- a/scripts/runtest.sh +++ b/scripts/runtest.sh @@ -147,7 +147,8 @@ testing() if ! verbose_has quiet && { [ -n "$DIFF" ] || verbose_has spam; } then [ ! -z "$4" ] && printf "%s\n" "echo -ne \"$4\" > input" - printf "%s\n" "echo -ne '$5' |$EVAL ${2@Q}" + [ ! -z "$5" ] && printf "%s" "echo -ne '$5' |" + printf "%s\n" "$EVAL ${2@Q}" [ -n "$DIFF" ] && printf "%s\n" "$DIFF" fi -- 2.39.5