summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-07-30 20:55:40 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-07-30 20:55:40 +0000
commit40b42fc6f66f15b451ea35db2d296524c029982a (patch)
treeb71a8ad8d59329beefe442ddc9ba1214b07a5957 /Test
parent1ab7d0fd0b21514a243db0b602d883acb3372a05 (diff)
downloadzsh-40b42fc6f66f15b451ea35db2d296524c029982a.tar.gz
zsh-40b42fc6f66f15b451ea35db2d296524c029982a.tar.xz
zsh-40b42fc6f66f15b451ea35db2d296524c029982a.zip
23726: test for adding and removing environment variables
Diffstat (limited to 'Test')
-rw-r--r--Test/B02typeset.ztst11
1 files changed, 11 insertions, 0 deletions
diff --git a/Test/B02typeset.ztst b/Test/B02typeset.ztst
index 40669defd..5ba88035b 100644
--- a/Test/B02typeset.ztst
+++ b/Test/B02typeset.ztst
@@ -377,3 +377,14 @@
 >integer local i
 >local tagged scalar
 >preserved
+
+ export ENVFOO=bar
+ print ENVFOO in environment
+ env | grep '^ENVFOO'
+ unset ENVFOO
+ print ENVFOO no longer in environment
+ env | grep '^ENVFOO'
+1:Adding and removing values to and from the environment
+>ENVFOO in environment
+>ENVFOO=bar
+>ENVFOO no longer in environment