Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh 4.3.4 released
- X-seq: zsh-workers 23313
- From: Peter Stephenson <pws@xxxxxxx>
- To: "Zsh hackers list" <zsh-workers@xxxxxxxxxx>
- Subject: Re: zsh 4.3.4 released
- Date: Mon, 23 Apr 2007 18:07:32 +0100
- In-reply-to: <20070423174029.1e8293a9.pws@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: Cambridge Silicon Radio
- References: <200704161647.l3GGl2FE027950@xxxxxxxxxxxxxx> <20070419120758.e9774528.pws@xxxxxxx> <237967ef0704201440g1c072ca8l451439d2ec8578bf@xxxxxxxxxxxxxx> <20070423104151.1f5f368e.pws@xxxxxxx> <237967ef0704230550k41ddb13fy60deebd526ecc5ec@xxxxxxxxxxxxxx> <200704231318.l3NDIONr006499@xxxxxxxxxxxxxx> <237967ef0704230722u7546461ehd6b3280df79352a0@xxxxxxxxxxxxxx> <200704231506.l3NF6Njx011759@xxxxxxxxxxxxxx> <237967ef0704230900r21af3aa1od42cd0b41abe2251@xxxxxxxxxxxxxx> <20070423174029.1e8293a9.pws@xxxxxxx>
Peter Stephenson <pws@xxxxxxx> wrote:
> I think I've found the problem: parse.c doesn't get recompiled when
> version.h changes, so zcompile might output the wrong version, so the shell
> can't check properly when the ZWC file is loaded.
Errm... and, in fact, it doesn't even when it can. And if it did, and
error checking was on, the error message would be wrong. Presumably this
has always been broken.
Index: Src/parse.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/parse.c,v
retrieving revision 1.62
diff -u -r1.62 parse.c
--- Src/parse.c 23 Apr 2007 16:55:00 -0000 1.62
+++ Src/parse.c 23 Apr 2007 17:04:02 -0000
@@ -2617,9 +2617,10 @@
}
if (read(fd, buf, (FD_PRELEN + 1) * sizeof(wordcode)) !=
((FD_PRELEN + 1) * sizeof(wordcode)) ||
- (v = (fdmagic(buf) != FD_MAGIC && fdmagic(buf) != FD_OMAGIC))) {
+ (v = (fdmagic(buf) != FD_MAGIC && fdmagic(buf) != FD_OMAGIC)) ||
+ strcmp(fdversion(buf), ZSH_VERSION)) {
if (err) {
- if (v) {
+ if (!v) {
zwarnnam(nam, "zwc file has wrong version (zsh-%s): %s",
fdversion(buf), name);
} else
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview
Messages sorted by:
Reverse Date,
Date,
Thread,
Author