about summary refs log tree commit diff
path: root/Test/C03traps.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2005-04-13 10:01:52 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-04-13 10:01:52 +0000
commitad95e2e27981a2beb1a032d8487b3b54fe0af4b8 (patch)
tree81ce09f12212a2161d6bd7d9402b238586d6b443 /Test/C03traps.ztst
parent3e3ecda01bddb92a4103cd5910dbe25ba27bf46e (diff)
downloadzsh-ad95e2e27981a2beb1a032d8487b3b54fe0af4b8.tar.gz
zsh-ad95e2e27981a2beb1a032d8487b3b54fe0af4b8.tar.xz
zsh-ad95e2e27981a2beb1a032d8487b3b54fe0af4b8.zip
21136: don't leave TRAPEXIT lying around in Test directory
Diffstat (limited to 'Test/C03traps.ztst')
-rw-r--r--Test/C03traps.ztst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Test/C03traps.ztst b/Test/C03traps.ztst
index f75c47c4d..b9d909761 100644
--- a/Test/C03traps.ztst
+++ b/Test/C03traps.ztst
@@ -59,8 +59,8 @@
 
 # $ZTST_exe is relative to the parent directory.
 # We ought to fix this in ztst.zsh...
-  cd ..
-  $ZTST_exe -fc 'TRAPEXIT() { print Exited.; }'
+  (cd ..
+  $ZTST_exe -fc 'TRAPEXIT() { print Exited.; }')
 0:EXIT traps on a script
 >Exited.