From cf79b808df0cf1fb1a2ad626789c811a4f11cae7 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 8 Mar 2003 21:22:25 +0000 Subject: (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. --- tests/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/Makefile.am') diff --git a/tests/Makefile.am b/tests/Makefile.am index 071d0003b..f220f9d71 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 || : -- cgit v1.2.3-70-g09d2