From: Zefram <zefram@dcs.warwick.ac.uk>
To: zsh-workers@math.gatech.edu (Z Shell workers mailing list)
Subject: zmodload -L bugfix
Date: Tue, 24 Dec 1996 11:27:32 +0000 (GMT) [thread overview]
Message-ID: <23458.199612241127@stone.dcs.warwick.ac.uk> (raw)
-----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-----
reply other threads:[~1996-12-24 11:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=23458.199612241127@stone.dcs.warwick.ac.uk \
--to=zefram@dcs.warwick.ac.uk \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).