From: Jim Meyering Date: Sat, 8 Mar 2003 21:22:25 +0000 (+0000) Subject: (evar-check): Check for POSIXLY_CORRECT not as a X-Git-Tag: v4.5.10~48 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cf79b808df0cf1fb1a2ad626789c811a4f11cae7;p=thirdparty%2Fcoreutils.git (evar-check): Check for POSIXLY_CORRECT not as a shell variable, but only in the environment. With /bin/sh->bash, the shell variable is set to `y', and that would cause a spurious warning. --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 071d0003b2..f220f9d71a 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -26,7 +26,7 @@ check-recursive: evar-check root-hint # Warn when `make check' is run with POSIXLY_CORRECT or CDPATH set. .PHONY: evar-check evar-check: - test "$${POSIXLY_CORRECT+set}" = set \ + ../src/printenv POSIXLY_CORRECT >/dev/null \ && sed s/%%/POSIXLY_CORRECT/ $(srcdir)/.env-warn || : test "$${CDPATH+set}" = set \ && sed s/%%/CDPATH/ $(srcdir)/.env-warn || :