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

zmodload -L bugfix



-----BEGIN PGP SIGNED MESSAGE-----

Oops, my zmodload -L code didn't handle module names starting with
`-' correctly.

 -zefram

      *** Src/module.c	1996/12/23 02:25:49	1.15
      --- Src/module.c	1996/12/24 00:10:01
      ***************
      *** 308,313 ****
      --- 308,315 ----
        	return;
            if(printflags & PRINT_LIST) {
        	fputs("zmodload -a ", stdout);
      + 	if(bn->nam[0] == '-')
      + 	    fputs("-- ", stdout);
        	quotedzputs(bn->nam, stdout);
        	if(strcmp(bn->nam, bn->optstr)) {
        	    putchar(' ');
      ***************
      *** 354,359 ****
      --- 356,363 ----
        
        		    if(ops['L']) {
        			printf("zmodload -d ");
      + 			if(m->nam[0] == '-')
      + 			    fputs("-- ", stdout);
        			quotedzputs(m->nam, stdout);
        		    } else {
        			nicezputs(m->nam, stdout);
      ***************
      *** 371,376 ****
      --- 375,382 ----
        	    } else if (m->handle) {
        		if(ops['L']) {
        		    printf("zmodload ");
      + 		    if(m->nam[0] == '-')
      + 			fputs("-- ", stdout);
        		    quotedzputs(m->nam, stdout);
        		} else
        		    nicezputs(m->nam, stdout);

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBMr865HD/+HJTpU/hAQEhugP/WoUluckpdKNEk0QB4dUhtd6D2OQcULZ9
YeR9T+G8VSW2+R+EZ7115fwVfOKKoYZA0dhcZkEDO7ICC48Nstk+vKJRgxS7N+Yn
xt5tpmTqFeKWhafhWcsZn5Vmrd5437vIXWsvbLE558qijXgRS/q/oeQMyFMN43DL
bxzX/uToIxQ=
=NISa
-----END PGP SIGNATURE-----



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