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 3e991f2449..706c9eafd5 100755
--- a/stdio-common/tst-unbputc.sh
+++ b/stdio-common/tst-unbputc.sh
@@ -28,6 +28,6 @@ ${test_program_prefix} \
   ${common_objpfx}stdio-common/tst-unbputc \
     2> ${common_objpfx}stdio-common/tst-unbputc.out || status=1
 
-(echo -n 12 | cmp ${common_objpfx}stdio-common/tst-unbputc.out -) || status=1
+(printf 12 | cmp ${common_objpfx}stdio-common/tst-unbputc.out -) || status=1
 
 exit $status