Commit 575b0ecb authored by Jim Meyering's avatar Jim Meyering
Browse files

test-framework-sh: tighten an internal grep regexp

* tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
that helps test for a working printf.
parent a43a04ac
2019-12-26 Jim Meyering <meyering@fb.com>
test-framework-sh: tighten an internal grep regexp
* tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
that helps test for a working printf.
2019-12-26 Bruno Haible <bruno@clisp.org>
 
test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
......@@ -161,10 +161,10 @@ fi
gl_shell_test_script_='
test $(echo y) = y || exit 1
LC_ALL=en_US.UTF-8 printf "\\351" 2>/dev/null \
| LC_ALL=C tr "\\351" x | LC_ALL=C grep x > /dev/null \
| LC_ALL=C tr "\\351" x | LC_ALL=C grep "^x$" > /dev/null \
|| exit 1
printf "\\351" 2>/dev/null \
| LC_ALL=C tr "\\351" x | LC_ALL=C grep x > /dev/null \
| LC_ALL=C tr "\\351" x | LC_ALL=C grep "^x$" > /dev/null \
|| exit 1
f_local_() { local v=1; }; f_local_ || exit 1
f_dash_local_fail_() { local t=$(printf " 1"); }; f_dash_local_fail_
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment