found by gcc on OSF/1 10x to Jupp Schugt (penpen)

This commit is contained in:
tg 2008-03-05 16:40:57 +00:00
parent 231b682cdf
commit 3ff6cc397a

6
lex.c
View File

@ -2,7 +2,7 @@
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.54 2008/03/01 21:10:25 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.55 2008/03/05 16:40:57 tg Exp $");
/*
* states while lexing word
@ -854,9 +854,7 @@ yylex(int cf)
while (dp < ident+IDENT)
if ((c = *sp++) == CHAR)
*dp++ = *sp++;
else if ((c == OQUOTE) || (c == CQUOTE))
;
else
else if ((c != OQUOTE) && (c != CQUOTE))
break;
else
while (dp < ident+IDENT && (c = *sp++) == CHAR)