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

PATCH: test for crashing bug here with LANG=C printf



Here's a test that picks up the bug.  (It affected all special exported
parameters that needed restoring after a command, so PATH shows it up
without relying on the vagaries of locales.)

Index: Test/A06assign.ztst
===================================================================
RCS file: /cvsroot/zsh/zsh/Test/A06assign.ztst,v
retrieving revision 1.1
diff -u -r1.1 A06assign.ztst
--- Test/A06assign.ztst	17 Dec 2001 17:17:38 -0000	1.1
+++ Test/A06assign.ztst	7 Jul 2004 15:09:30 -0000
@@ -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

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, 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.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



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