zsh-workers
 help / color / mirror / code / Atom feed
From: hzoli@cs.elte.hu (Zoltan Hidvegi)
To: zsh-list@sterling.com (zsh-list)
Subject: Bugfix to hzoli8
Date: Fri, 19 May 1995 12:32:39 +0100 (MET DST)	[thread overview]
Message-ID: <9505191032.AA11439@turan.elte.hu> (raw)

I discovered a small bug in my zsh distribution:

% zsh -f
turan% setopt ignorebraces 
turan% foo=bug
turan% echo ${bar-${foo}}
zsh: closing brace expected

Here is the fix.

Zoltan


*** 1.10	1995/05/05 17:20:22
--- Src/lex.c	1995/05/17 21:02:14
***************
*** 675,684 ****
  		}
  		c = Outpar;
  	    } else {
! 		if (e == '{' && !in_brace_param) {
  		    add(c);
  		    c = Inbrace;
! 		    in_brace_param = ++bct;
  		} else
  		    hungetc(e);
  	    }
--- 675,686 ----
  		}
  		c = Outpar;
  	    } else {
! 		if (e == '{') {
  		    add(c);
  		    c = Inbrace;
! 		    ++bct;
! 		    if (!in_brace_param)
! 			in_brace_param = bct;
  		} else
  		    hungetc(e);
  	    }


                 reply	other threads:[~1995-05-19 10:47 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=9505191032.AA11439@turan.elte.hu \
    --to=hzoli@cs.elte.hu \
    --cc=zsh-list@sterling.com \
    /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).