… one more regression test we pass…
• hd <<< bar → like bash, ksh93, zsh • hd <<< #bar → like zsh (bash, ksh93: syntax error) • hd <<< → like hd <<< '' (bash, ksh93, zsh: syntax error)
This commit is contained in:
6
lex.c
6
lex.c
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#include "sh.h"
|
#include "sh.h"
|
||||||
|
|
||||||
__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.63 2008/07/08 22:28:25 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/lex.c,v 1.64 2008/07/09 20:41:23 tg Exp $");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* states while lexing word
|
* states while lexing word
|
||||||
@ -192,6 +192,10 @@ yylex(int cf)
|
|||||||
c = getsc();
|
c = getsc();
|
||||||
if (c == '<') {
|
if (c == '<') {
|
||||||
state = SHERESTRING;
|
state = SHERESTRING;
|
||||||
|
while ((c = getsc()) == ' ' || c == '\t')
|
||||||
|
;
|
||||||
|
ungetsc(c);
|
||||||
|
c = '<';
|
||||||
goto accept_nonword;
|
goto accept_nonword;
|
||||||
}
|
}
|
||||||
ungetsc(c);
|
ungetsc(c);
|
||||||
|
Reference in New Issue
Block a user