zsh-workers
 help / color / mirror / code / Atom feed
* zmodload -L bugfix
@ 1996-12-24 11:27 Zefram
  0 siblings, 0 replies; only message in thread
From: Zefram @ 1996-12-24 11:27 UTC (permalink / raw)
  To: Z Shell workers mailing list

-----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-----


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-12-24 11:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-12-24 11:27 zmodload -L bugfix Zefram

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).