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:
@ -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
|
||||
|
Reference in New Issue
Block a user