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

PATCH: listing autoloads for unloaded modules



You shouldn't go looking for problems because...

Index: Src/module.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/module.c,v
retrieving revision 1.35
diff -u -r1.35 module.c
--- Src/module.c	17 Jul 2007 07:01:56 -0000	1.35
+++ Src/module.c	31 Jul 2007 14:28:14 -0000
@@ -215,7 +215,7 @@
 	    fputs(" -> ", stdout);
 	    nicezputs(m->u.alias, stdout);
 	}
-    } else if (m->u.handle) {
+    } else if (m->u.handle || (flags & PRINTMOD_AUTO)) {
 	/*
 	 * Loaded module.
 	 */
Index: Test/V01zmodload.ztst
===================================================================
RCS file: /cvsroot/zsh/zsh/Test/V01zmodload.ztst,v
retrieving revision 1.10
diff -u -r1.10 V01zmodload.ztst
--- Test/V01zmodload.ztst	6 Jul 2007 21:52:41 -0000	1.10
+++ Test/V01zmodload.ztst	31 Jul 2007 14:28:14 -0000
@@ -260,6 +260,11 @@
  zmodload zsh/parameter
 0d:Unload the modules loaded by this test suite
 
+  zmodload -aF zsh/zftp b:zftp
+  zmodload -LaF | grep zftp
+0:Listing feature autoloads includes unloaded modules
+>zmodload -Fa zsh/zftp b:zftp
+
 %clean
 
  eval "$deps"

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


.



Messages sorted by: Reverse Date, Date, Thread, Author