diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-08-06 04:14:20 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-08-09 04:19:12 -0400 |
commit | 2c61c19f80e21743ef36bc53597ba893d4836dfc (patch) | |
tree | 934d1a8a815e529b6e7d2a914b24c48c0f3cd46a /stdio-common | |
parent | ef086ef8baada5bd485f3f21dde1c9bc10bd6bd5 (diff) | |
download | glibc-2c61c19f80e21743ef36bc53597ba893d4836dfc.tar.gz glibc-2c61c19f80e21743ef36bc53597ba893d4836dfc.tar.xz glibc-2c61c19f80e21743ef36bc53597ba893d4836dfc.zip |
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.
Diffstat (limited to 'stdio-common')
-rwxr-xr-x | stdio-common/tst-unbputc.sh | 2 |
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 |