xref: /freebsd/contrib/bmake/unit-tests/unexport-env.mk (revision 0a36787e4c1fa0cf77dcf83be0867178476e372b)
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