From: Zefram <zefram@dcs.warwick.ac.uk>
To: zsh-workers@math.gatech.edu (Z Shell workers mailing list)
Subject: option error message fix
Date: Fri, 29 Nov 1996 21:46:11 +0000 (GMT) [thread overview]
Message-ID: <10235.199611292146@stone.dcs.warwick.ac.uk> (raw)
-----BEGIN PGP SIGNED MESSAGE-----
% print -^@
zsh: bad option: \M-^C
Index: Src/builtin.c
===================================================================
RCS file: /home/zefram/usr/cvsroot/zsh/Src/builtin.c,v
retrieving revision 1.36
diff -c -r1.36 builtin.c
*** Src/builtin.c 1996/11/21 01:34:17 1.36
--- Src/builtin.c 1996/11/29 15:14:04
***************
*** 107,114 ****
(arg[-1] == 'L' || arg[-1] == 'R' ||
arg[-1] == 'Z' || arg[-1] == 'i'))
auxlen = (int)zstrtol(arg, &arg, 10);
! /* the above loop may have exited on an invalid option */
if (*arg) {
zerr("bad option: %c", NULL, *arg);
zsfree(xarg);
return 1;
--- 107,117 ----
(arg[-1] == 'L' || arg[-1] == 'R' ||
arg[-1] == 'Z' || arg[-1] == 'i'))
auxlen = (int)zstrtol(arg, &arg, 10);
! /* The above loop may have exited on an invalid option. (We *
! * assume that any option requiring metafication is invalid.) */
if (*arg) {
+ if(*arg == Meta)
+ *++arg ^= 32;
zerr("bad option: %c", NULL, *arg);
zsfree(xarg);
return 1;
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
iQCVAwUBMp7/XXD/+HJTpU/hAQFPIQP/apaqdgoXfoAGBkt5gAC+aB7igDKJ+xYq
8wb+Gw5uWPnbxTyW/l34QglGtdNsCNgaLtm9AXrr55aeDnnoFd0J1YmCiV081zZl
NaDnl8jhssxQuDrZB8JXBnTBc6J9vawsG7uAHw0/zXv2RIU4dXtCfEtmwRx/NWHq
TeGA16XkFBo=
=xfLI
-----END PGP SIGNATURE-----
reply other threads:[~1996-11-29 21:56 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=10235.199611292146@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).