zsh-workers
 help / color / mirror / code / Atom feed
* option error message fix
@ 1996-11-29 21:46 Zefram
  0 siblings, 0 replies; only message in thread
From: Zefram @ 1996-11-29 21:46 UTC (permalink / raw)
  To: Z Shell workers mailing list

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


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

only message in thread, other threads:[~1996-11-29 21:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-11-29 21:46 option error message fix 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).