about summary refs log tree commit diff
path: root/stdio-common/tst-unbputc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/tst-unbputc.sh')
-rwxr-xr-xstdio-common/tst-unbputc.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdio-common/tst-unbputc.sh b/stdio-common/tst-unbputc.sh
index 929afd357c..efc07778e3 100755
--- a/stdio-common/tst-unbputc.sh
+++ b/stdio-common/tst-unbputc.sh
@@ -26,6 +26,6 @@ ${common_objpfx}elf/ld.so --library-path $common_objpfx \
   ${common_objpfx}stdio-common/tst-unbputc \
     2> ${common_objpfx}stdio-common/tst-unbputc.out || status=1
 
-(echo 12 | cmp ${common_objpfx}stdio-common/tst-unbputc.out -) || status=1
+(echo -n 12 | cmp ${common_objpfx}stdio-common/tst-unbputc.out -) || status=1
 
 exit $status