Sigh. This will become a never ending story. :-(

When comparing my recent parser change against the ash in 1.1.5.1, i
found that a couple of other problems in the same area has been fixed
there, but not in 2.2.  Semicolons and EOF do also delimit words...
This commit is contained in:
Joerg Wunsch 1995-08-28 19:24:35 +00:00
parent a4a142bd15
commit 248ffae537
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10399

View file

@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: parser.c,v 1.7 1995/08/11 08:18:39 joerg Exp $
* $Id: parser.c,v 1.8 1995/08/27 20:26:42 joerg Exp $
*/
#ifndef lint
@ -445,6 +445,9 @@ TRACE(("expecting DO got %s %s\n", tokname[got], got == TWORD ? wordtext : ""));
case TAND:
case TOR:
case TNL:
case TSEMI:
/* Handle EOF as an empty command, too */
case TEOF:
case TWORD:
tokpushback++;
return simplecmd(rpp, redir);