Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

option error message fix



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



Messages sorted by: Reverse Date, Date, Thread, Author