it is now a parse error for directories to have args attached to them

This commit is contained in:
Todd C. Miller
1995-08-19 23:31:35 +00:00
parent 723998be9c
commit cda9b243cb

View File

@@ -77,7 +77,7 @@ N [0-9][0-9]?[0-9]?
<GOTCMND>[:,=\n] { <GOTCMND>[:,=\n] {
BEGIN 0; BEGIN 0;
unput(yytext[0]); unput(yytext[0]);
return(PATH); return(COMMAND);
} /* end of command line args */ } /* end of command line args */
\n { \n {
@@ -126,9 +126,15 @@ N [0-9][0-9]?[0-9]?
return NTWKADDR; return NTWKADDR;
} }
\/[^\,:=\\ \t\n#]+\/ {
LEXTRACE("COMMAND ");
fill();
return COMMAND;
} /* a directory */
\/[^\,:=\\ \t\n#]+ { \/[^\,:=\\ \t\n#]+ {
BEGIN GOTCMND; BEGIN GOTCMND;
LEXTRACE("PATH "); LEXTRACE("COMMAND ");
fill(); fill();
} /* a pathname */ } /* a pathname */