Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Some display fixes in hashtable.c
- X-seq: zsh-workers 1259
- From: Zefram <A.Main@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx (Z Shell workers mailing list)
- Subject: Some display fixes in hashtable.c
- Date: Tue, 4 Jun 1996 16:44:24 +0100 (BST)
-----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-----
Messages sorted by:
Reverse Date,
Date,
Thread,
Author