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

another lexer bugfix



-----BEGIN PGP SIGNED MESSAGE-----

Another one deep within the lexer: `a[1]=b` stopped working.  The unusual
form `a\[1]=b` continued working, because \[ didn't register as a real
bracket.

 -zefram

      Index: Src/lex.c
      ===================================================================
      RCS file: /home/zefram/usr/cvsroot/zsh/Src/lex.c,v
      retrieving revision 1.8
      diff -c -r1.8 lex.c
      *** lex.c	1996/07/16 18:26:11	1.8
      --- lex.c	1996/07/16 19:19:57
      ***************
      *** 744,750 ****
        	    intpos = 0;
        	    continue;
        	case LX2_OUTBRACK:
      ! 	    if (brct < 0) {
        		brct = 0;
        		break;
        	    }
      --- 744,750 ----
        	    intpos = 0;
        	    continue;
        	case LX2_OUTBRACK:
      ! 	    if (--brct < 0) {
        		brct = 0;
        		break;
        	    }

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBMevsNXD/+HJTpU/hAQGe3gQAgvUWO6IJdmF/0hYxKhxk9I3abDd34LYO
gGDlgOY0jJE5GilDv25Wmq/9QL5mmyEopIeF8bRFeRI0E1i+fu8vacsMVrae7rFi
dcJHl6Gm7gXBsXbpVJbhtt8c2Fpmn0qHAdk4JAK2nLD6Iygt8HuszldCHoW0zrvR
jIB6oSYAPi0=
=LArN
-----END PGP SIGNATURE-----




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