zsh-workers
 help / color / mirror / code / Atom feed
* Bugfix to hzoli8
@ 1995-05-19 11:32 Zoltan Hidvegi
  0 siblings, 0 replies; only message in thread
From: Zoltan Hidvegi @ 1995-05-19 11:32 UTC (permalink / raw)
  To: zsh-list

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);
  	    }


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

only message in thread, other threads:[~1995-05-19 10:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-05-19 11:32 Bugfix to hzoli8 Zoltan Hidvegi

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