about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Test/A06assign.ztst13
2 files changed, 16 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3aff2e939..911ece7e9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2004-07-07  Peter Stephenson  <pws@csr.com>
 
+	* 20142: Test/A06assign.ztst: add test for bug fixed in
+	20141.
+
 	* 20141: Src/builtin.c, Src/exec.c, Src/params.c:  Crash
 	after restoring exported special parameters.  The
 	answer was `pm = tpm' at exec.c:2590.
diff --git a/Test/A06assign.ztst b/Test/A06assign.ztst
index fa3714f22..3093c35ca 100644
--- a/Test/A06assign.ztst
+++ b/Test/A06assign.ztst
@@ -251,3 +251,16 @@
  echo $u
 0:add array to indexed unset variable
 >a z
+
+ repeat 10 PATH=. echo hello
+0:saving and restoring of exported special parameters
+>hello
+>hello
+>hello
+>hello
+>hello
+>hello
+>hello
+>hello
+>hello
+>hello