zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
To: Zsh-Workers <zsh-workers@sunsite.dk>
Subject: PATCH: test for crashing bug here with LANG=C printf
Date: Wed, 07 Jul 2004 16:11:30 +0100	[thread overview]
Message-ID: <200407071511.i67FBUJq005048@news01.csr.com> (raw)
In-Reply-To: "Peter Stephenson"'s message of "Wed, 07 Jul 2004 15:52:39 BST." <200407071452.i67EqdAI004325@news01.csr.com>

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@csr.com>                  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
**********************************************************************


  reply	other threads:[~2004-07-07 15:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-07  0:46 crashing bug here with LANG=C printf "%1.1f\n" 23.2 Matthias Kopfermann
2004-07-07  7:59 ` crashing bug here with LANG=C printf "%1.1f" 23.2 Oliver Kiddle
2004-07-07 14:52 ` PATCH: crashing bug here with LANG=C printf "%1.1f\n" 23.2 Peter Stephenson
2004-07-07 15:11   ` Peter Stephenson [this message]
2004-07-07 16:22   ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200407071511.i67FBUJq005048@news01.csr.com \
    --to=pws@csr.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).