diff options
author | Jim Meyering <jim@meyering.net> | 2003-03-08 21:22:25 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-03-08 21:22:25 +0000 |
commit | cf79b808df0cf1fb1a2ad626789c811a4f11cae7 (patch) | |
tree | 111892a6a6b8756678a8b19c4433b6e7e3787bae | |
parent | 79d95ae843247852dcfc734c9be8eff9df0501fc (diff) | |
download | coreutils-cf79b808df0cf1fb1a2ad626789c811a4f11cae7.tar.xz |
(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.
-rw-r--r-- | tests/Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
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 || : |