zsh-workers
 help / color / mirror / code / Atom feed
* 1foo=something bugfix
@ 1996-09-11  0:45 Zoltan Hidvegi
  0 siblings, 0 replies; only message in thread
From: Zoltan Hidvegi @ 1996-09-11  0:45 UTC (permalink / raw)
  To: Zsh hacking and development

Peter reported that

1foo=... is the same as
1=...

The patch below hopefully cures this.

Zoltan


*** Src/lex.c.orig	Wed Sep 11 00:51:32 1996
--- Src/lex.c	Wed Sep 11 02:37:13 1996
***************
*** 859,873 ****
  		}
  	    } else if (!sub && peek != ENVSTRING &&
  		       incmdpos && !bct && !brct) {
! 		e = hgetc();
! 		if (e == '(' && incmdpos) {
! 		    *bptr = '\0';
! 		    return ENVARRAY;
! 		}
! 		hungetc(e);
! 		lexstop = 0;
! 		peek = ENVSTRING;
! 		intpos = 2;
  	    } else
  		c = Equals;
  	    break;
--- 859,881 ----
  		}
  	    } else if (!sub && peek != ENVSTRING &&
  		       incmdpos && !bct && !brct) {
! 		e = 0;
! 		if (idigit(*tokstr))
! 		    while (++e < len && idigit(tokstr[e]));
! 		else
! 		    while (iident(tokstr[e]) && ++e < len);
! 		if (e == len) {
! 		    e = hgetc();
! 		    if (e == '(' && incmdpos) {
! 			*bptr = '\0';
! 			return ENVARRAY;
! 		    }
! 		    hungetc(e);
! 		    lexstop = 0;
! 		    peek = ENVSTRING;
! 		    intpos = 2;
! 		} else
! 		    c = Equals;
  	    } else
  		c = Equals;
  	    break;


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

only message in thread, other threads:[~1996-09-11  4:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-09-11  0:45 1foo=something bugfix 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).