]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(evar-check): Check for POSIXLY_CORRECT not as a
authorJim Meyering <jim@meyering.net>
Sat, 8 Mar 2003 21:22:25 +0000 (21:22 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 8 Mar 2003 21:22:25 +0000 (21:22 +0000)
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

index 071d0003b2b1b65ea45228555de1c8ebda55efa8..f220f9d71a44a3fa6c5eea5849611522d2b02ae7 100644 (file)
@@ -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 || :