From e39dbe17527d3d897ec541a6c799d671c7521eb9 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Wed, 16 Sep 2026 13:17:50 -0400 Subject: [PATCH] Remove no-op in link test script No, `printf` does not do that. This works because making it read from stdin suppresses any words after the first one. --- test/link/test.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/link/test.sh b/test/link/test.sh index 73c13ab3..a4c39ab2 100755 --- a/test/link/test.sh +++ b/test/link/test.sh @@ -60,8 +60,7 @@ tryCmp () { } tryCmpRom () { - # `printf` lets us keep only the first returned word from `wc`. - rom_size=$(printf %s $(wc -c <"$1")) + rom_size=$(wc -c <"$1") # 'rgblink -x' implies '-t', so we cannot use '-x' to trim the ROM output dd if="$gbtemp" count=1 bs="$rom_size" >"$otemp" 2>/dev/null tryCmp "$1" "$otemp"