Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: traps test



This is a trivial fix to stop the test suite leaving a file TRAPEXIT in
the Test directory.

Index: Test/C03traps.ztst
===================================================================
RCS file: /cvsroot/zsh/zsh/Test/C03traps.ztst,v
retrieving revision 1.5
diff -u -r1.5 C03traps.ztst
--- Test/C03traps.ztst	6 Feb 2005 20:36:45 -0000	1.5
+++ Test/C03traps.ztst	13 Apr 2005 09:40:25 -0000
@@ -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.
 

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

**********************************************************************



Messages sorted by: Reverse Date, Date, Thread, Author