xref: /freebsd/contrib/bmake/unit-tests/unexport-env.mk (revision 43a5ec4eb41567cc92586503212743d89686d78f)
1# $NetBSD: unexport-env.mk,v 1.4 2020/10/24 08:50:17 rillig Exp $
2
3# pick up a bunch of exported vars
4FILTER_CMD=	grep ^UT_
5.include "export.mk"
6
7# an example of setting up a minimal environment.
8PATH=	/bin:/usr/bin:/sbin:/usr/sbin
9
10# now clobber the environment to just PATH and UT_TEST
11UT_TEST=	unexport-env
12
13# this removes everything
14.unexport-env
15.export PATH UT_TEST
16