about summary refs log tree commit diff
path: root/Test/A06assign.ztst
diff options
context:
space:
mode:
Diffstat (limited to 'Test/A06assign.ztst')
-rw-r--r--Test/A06assign.ztst15
1 files changed, 15 insertions, 0 deletions
diff --git a/Test/A06assign.ztst b/Test/A06assign.ztst
index bbed909c5..44c8e3193 100644
--- a/Test/A06assign.ztst
+++ b/Test/A06assign.ztst
@@ -277,3 +277,18 @@
 >
 >
 >
+
+  call() { print $HELLO; }
+  export HELLO=world
+  call
+  HELLO=universe call
+  call
+  HELLO=${HELLO}liness call
+  call
+  unset HELLO
+0:save and restore when using original value in temporary
+>world
+>universe
+>world
+>worldliness
+>world