Module Name: src
Committed By: sjg
Date: Tue Jul 28 18:53:07 UTC 2020
Modified Files:
src/usr.bin/make/unit-tests: export.mk
Log Message:
Use egrep rather than grep -E
Also we need to exclude noise that some shells include.
This is why the original test restricted itself to checking
for UT_* in env.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/make/unit-tests/export.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/unit-tests/export.mk
diff -u src/usr.bin/make/unit-tests/export.mk:1.3 src/usr.bin/make/unit-tests/export.mk:1.4
--- src/usr.bin/make/unit-tests/export.mk:1.3 Mon Jul 27 19:53:37 2020
+++ src/usr.bin/make/unit-tests/export.mk Tue Jul 28 18:53:07 2020
@@ -1,4 +1,4 @@
-# $Id: export.mk,v 1.3 2020/07/27 19:53:37 rillig Exp $
+# $Id: export.mk,v 1.4 2020/07/28 18:53:07 sjg Exp $
UT_TEST=export
UT_FOO=foo${BAR}
@@ -37,7 +37,7 @@ BAR=bar is ${UT_FU}
.MAKE.EXPORTED+= UT_ZOO UT_TEST
-FILTER_CMD?= grep -v -E '^(MAKEFLAGS|PATH|PWD)='
+FILTER_CMD?= egrep -v '^(MAKEFLAGS|PATH|PWD|SHLVL|_)='
all:
@env | ${FILTER_CMD} | sort