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

PATCH: 3.1.6-pws-5: zmodload -e in statically linked shell



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