aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/unexport-env
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bmake/unit-tests/unexport-env')
-rw-r--r--contrib/bmake/unit-tests/unexport-env14
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/bmake/unit-tests/unexport-env b/contrib/bmake/unit-tests/unexport-env
new file mode 100644
index 000000000000..f6a2ff998268
--- /dev/null
+++ b/contrib/bmake/unit-tests/unexport-env
@@ -0,0 +1,14 @@
+# $Id: unexport-env,v 1.1.1.1 2009/11/19 00:31:11 sjg Exp $
+
+# pick up a bunch of exported vars
+.include "export"
+
+# an example of setting up a minimal environment.
+PATH = /bin:/usr/bin:/sbin:/usr/sbin
+
+# now clobber the environment to just PATH and UT_TEST
+UT_TEST = unexport-env
+
+# this removes everything
+.unexport-env
+.export PATH UT_TEST