tests/prediction-unicode.test: env -u is not POSIX

Seen to fail on OpenBSD 5.2.
This commit is contained in:
John Hood
2016-11-12 15:26:55 -05:00
parent df085e02dc
commit c9d0c9c0c5
+8 -4
View File
@@ -72,10 +72,14 @@ baseline()
post() post()
{ {
# Look for bad output: ')' or \374 # Look for bad output: ')' or \374
if [ -n "$(env -u LC_ALL -u LC_CTYPE -u LANGUAGE LANG=C egrep "%output %0 (\)|$(printf \\374))" "$(basename "$0").d/baseline.tmux.log")" ]; then (
exit 1 unset LC_ALL
fi unset LC_CTYPE
exit 0 unset LANGUAGE
! env LANG=C egrep -q "%output %0 (\)|$(printf \\374))" "$(basename "$0").d/baseline.tmux.log"
# Implicit exitcode return.
)
return $?
} }
case $1 in case $1 in