Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: 3.1.6-pws-5: zmodload -e in statically linked shell
- X-seq: zsh-workers 7957
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: PATCH: 3.1.6-pws-5: zmodload -e in statically linked shell
- Date: Mon, 20 Sep 1999 14:40:20 +0200
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
I tried --enable-zsh-mem --disable-lfs on a 32-bit machine and there didn't
seem to be any obvious alignment problems.
Meanwhile I found that `zmodload -e module' isn't working properly in
shells without dynamic loading.
--- Src/module.c.zme Mon Aug 30 13:38:48 1999
+++ Src/module.c Mon Sep 20 14:35:45 1999
@@ -1181,13 +1181,13 @@
nicezputs((char *) getdata(node), stdout);
putchar('\n');
}
+ return 0;
} else {
for (; *args; args++)
for (node = firstnode(bltinmodules); node; incnode(node))
- if (strcmp(*args, (char *) getdata(node)))
- return 1;
+ if (!strcmp(*args, (char *) getdata(node)))
+ return 0;
}
- return 0;
}
/* Otherwise we return 1 -- different from the dynamic version. */
return 1;
--
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy
Messages sorted by:
Reverse Date,
Date,
Thread,
Author