mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-17 15:01:40 +02:00
23726: test for adding and removing environment variables
This commit is contained in:
parent
1ab7d0fd0b
commit
40b42fc6f6
2 changed files with 14 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
2007-07-30 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* 23726: Test/B02typeset.ztst: test for adding and removing
|
||||
of environment variables.
|
||||
|
||||
* 23725: configure.ac, Src/exec.c, Src/params.c, Src/system.h:
|
||||
use setenv() and unsetenv() for memory management of the
|
||||
environment where possible.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue