* PATCH: 3.1.6-pws-5: zmodload -e in statically linked shell
@ 1999-09-20 12:40 Peter Stephenson
0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 1999-09-20 12:40 UTC (permalink / raw)
To: Zsh hackers list
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@ibmth.df.unipi.it> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-09-20 13:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-20 12:40 PATCH: 3.1.6-pws-5: zmodload -e in statically linked shell Peter Stephenson
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).