1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

fix non-portable echo -n usage

These scripts use #!/bin/sh explicitly, so make sure they avoid echo -n
as different shells treat it differently.  Use the portable printf func
instead.
This commit is contained in:
Mike Frysinger
2015-08-06 04:14:20 -04:00
parent ef086ef8ba
commit 2c61c19f80
5 changed files with 20 additions and 13 deletions

View File

@ -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