about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-11-28 22:09:00 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-11-28 22:09:00 +0000
commitab8b8026dcc17f7c3d8dcfba7dba046b1ac7c42b (patch)
tree0a37d2f8f80757e808f9c22d0ec195b2cadeb042
parentef97181d40dc558ad5d7edc570d2a957d80bd8ad (diff)
downloadzsh-ab8b8026dcc17f7c3d8dcfba7dba046b1ac7c42b.tar.gz
zsh-ab8b8026dcc17f7c3d8dcfba7dba046b1ac7c42b.tar.xz
zsh-ab8b8026dcc17f7c3d8dcfba7dba046b1ac7c42b.zip
23022: don't allow WORDCHARS to be exported to tests
-rw-r--r--ChangeLog3
-rwxr-xr-xTest/ztst.zsh3
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 38f63a788..e11ead760 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-11-28  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
+	* 23022: Test/ztst.zsh: don't allow WORDCHARS to be exported
+	to tests.
+
 	* unposted: Completion/Unix/Command/_perforce: updated to 2006.2.
 
 2006-11-27  Clint Adams  <clint@zsh.org>
diff --git a/Test/ztst.zsh b/Test/ztst.zsh
index 77ff30e8d..bd76a0dc0 100755
--- a/Test/ztst.zsh
+++ b/Test/ztst.zsh
@@ -30,6 +30,9 @@ emulate -R zsh
 [[ -n $LC_MESSAGES ]] && LC_MESSAGES=C
 [[ -n $LANG ]] && LANG=C
 
+# Don't propagate variables that are set by default in the shell.
+typeset +x WORDCHARS
+
 # Set the module load path to correspond to this build of zsh.
 # This Modules directory should have been created by "make check".
 [[ -d Modules/zsh ]] && module_path=( $PWD/Modules )