Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make/unit-tests Use egrep rather than grep -E



details:   https://anonhg.NetBSD.org/src/rev/a5e937c1fc66
branches:  trunk
changeset: 936526:a5e937c1fc66
user:      sjg <sjg%NetBSD.org@localhost>
date:      Tue Jul 28 18:53:07 2020 +0000

description:
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.

diffstat:

 usr.bin/make/unit-tests/export.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 1e57c94c87dc -r a5e937c1fc66 usr.bin/make/unit-tests/export.mk
--- a/usr.bin/make/unit-tests/export.mk Tue Jul 28 18:39:56 2020 +0000
+++ b/usr.bin/make/unit-tests/export.mk Tue Jul 28 18:53:07 2020 +0000
@@ -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 @@
 
 .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



Home | Main Index | Thread Index | Old Index