at least _parse_ the construct ${foo+(bar)} correctly

(whether the output is correct is still up for debate)
This commit is contained in:
tg
2010-02-18 17:31:23 +00:00
parent 0d1083fc9c
commit 5beee95d6b
3 changed files with 95 additions and 6 deletions

4
lex.c
View File

@ -22,7 +22,7 @@
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.107 2010/01/29 09:34:28 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.108 2010/02/18 17:31:23 tg Exp $");
/*
* states while lexing word
@ -685,7 +685,7 @@ yylex(int cf)
*wp++ = CSUBST;
*wp++ = /*{*/ '}';
} else
goto Sbase1;
goto Sbase2;
break;
case STBRACE: