zsh-workers
 help / color / mirror / code / Atom feed
* Some display fixes in hashtable.c
@ 1996-06-04 15:44 Zefram
  0 siblings, 0 replies; only message in thread
From: Zefram @ 1996-06-04 15:44 UTC (permalink / raw)
  To: Z Shell workers mailing list

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

One of my recent patches broke a couple of display formats in hashtable.c.
The symptoms are that command hash table entries lose their filename
(sometimes garbage appears instead), and array values as output by "set"
look like "foo=(bar bazquux )" instead of "foo=(bar baz quux)".

 -zefram

      Index: Src/hashtable.c
      *** hashtable.c	1996/05/18 10:21:03	1.3
      --- hashtable.c	1996/06/04 13:33:28
      ***************
      *** 602,608 ****
        	} else {
        	    zputs(*(cn->u.name), stdout);
        	    putchar('/');
      ! 	    zputs(cn->u.cmd, stdout);
        	    putchar('\n');
        	}
        	return;
      --- 602,608 ----
        	} else {
        	    zputs(*(cn->u.name), stdout);
        	    putchar('/');
      ! 	    zputs(cn->nam, stdout);
        	    putchar('\n');
        	}
        	return;
      ***************
      *** 619,625 ****
        	    printf(" is ");
        	    nicezputs(*(cn->u.name), stdout);
        	    putchar('/');
      ! 	    nicezputs(cn->u.cmd, stdout);
        	    putchar('\n');
        	}
        	return;
      --- 619,625 ----
        	    printf(" is ");
        	    nicezputs(*(cn->u.name), stdout);
        	    putchar('/');
      ! 	    nicezputs(cn->nam, stdout);
        	    putchar('\n');
        	}
        	return;
      ***************
      *** 635,641 ****
        	putchar('=');
        	quotedzputs(*(cn->u.name), stdout);
        	putchar('/');
      ! 	quotedzputs(cn->u.cmd, stdout);
        	putchar('\n');
            }
        }
      --- 635,641 ----
        	putchar('=');
        	quotedzputs(*(cn->u.name), stdout);
        	putchar('/');
      ! 	quotedzputs(cn->nam, stdout);
        	putchar('\n');
            }
        }
      ***************
      *** 1074,1083 ****
        	/* array */
        	putchar('(');
        	u = p->gets.afn(p);
      ! 	while (*u) {
        	    quotedzputs(*u++, stdout);
      ! 	    if(u[1])
        		putchar(' ');
        	}
        	printf(")\n");
        	break;
      --- 1074,1085 ----
        	/* array */
        	putchar('(');
        	u = p->gets.afn(p);
      ! 	if(*u) {
        	    quotedzputs(*u++, stdout);
      ! 	    while (*u) {
        		putchar(' ');
      + 		quotedzputs(*u++, stdout);
      + 	    }
        	}
        	printf(")\n");
        	break;

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

iQCVAwUBMbQ8dnD/+HJTpU/hAQF50gP/fJ/odL70wZ/ggphkI8MNeirhP/oqe75z
llfFR7aEEKwfH8QJGm3X9okYJTEhGaLcwJgvm0+fko1agpCUUg13lTvhcnLWGKTo
QwdmcivG5e5li9RyzePhZcyr9cfQChWhwBccGu6mVwYe+EuGSgtTGwWe8bmfC8wt
uQ4xKY3bQt0=
=3SPO
-----END PGP SIGNATURE-----



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

only message in thread, other threads:[~1996-06-04 15:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-06-04 15:44 Some display fixes in hashtable.c 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).