zsh-workers
 help / color / mirror / code / Atom feed
From: Zefram <A.Main@dcs.warwick.ac.uk>
To: zsh-workers@math.gatech.edu (Z Shell workers mailing list)
Subject: new lexing bug, and possible fix
Date: Tue, 16 Jul 1996 20:44:18 +0100 (BST)	[thread overview]
Message-ID: <28094.199607161944@stone.dcs.warwick.ac.uk> (raw)

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

zsh -fc 'echo ${'

      Index: Src/lex.c
      ===================================================================
      RCS file: /home/zefram/usr/cvsroot/zsh/Src/lex.c,v
      retrieving revision 1.7
      diff -c -r1.7 lex.c
      *** lex.c	1996/07/16 14:26:55	1.7
      --- lex.c	1996/07/16 18:20:32
      ***************
      *** 715,721 ****
        		}
        		c = Outpar;
        	    } else {
      ! 		if (e == '{') {
        		    add(c);
        		    c = Inbrace;
        		    ++bct;
      --- 715,721 ----
        		}
        		c = Outpar;
        	    } else {
      ! 		if (e == '{') { /*}*/
        		    add(c);
        		    c = Inbrace;
        		    ++bct;
      ***************
      *** 768,774 ****
        	    break;
        	case LX2_INBRACE:
        	    if (isset(IGNOREBRACES) || sub)
      ! 		c = '{';
        	    else {
        		if (in_brace_param)
        		    cmdpush(CS_BRACE);
      --- 768,774 ----
        	    break;
        	case LX2_INBRACE:
        	    if (isset(IGNOREBRACES) || sub)
      ! 		c = '{'; /*}*/
        	    else {
        		if (in_brace_param)
        		    cmdpush(CS_BRACE);
      ***************
      *** 964,969 ****
      --- 964,972 ----
          brk:
            hungetc(c);
            *bptr = '\0';
      +     if (in_brace_param)
      + 	while(bct-- >= in_brace_param)
      + 	    cmdpop();
            DPUTS(cmdsp != ocmdsp, "BUG: gettok: cmdstack changed.");
            return peek;
        }

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

iQCVAwUBMeveTnD/+HJTpU/hAQG0bQP/QWxzgTrcGS9jnaqeK5FC73epXRJQNXE1
5z84WhUpSxfuZ8Eoiyo6eo6jL4ZUZ2opaMUvjZabPZj/TIC3EOjT1xUksLdN8Na8
FZsFTZUNEP94cDh51MbZMQ4s7/nspZiAB8F/aY9lh0dF6x25uUcNTIMMsbBleIKV
owzhlSYeevs=
=cw0M
-----END PGP SIGNATURE-----



                 reply	other threads:[~1996-07-16 19:50 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=28094.199607161944@stone.dcs.warwick.ac.uk \
    --to=a.main@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).