From 4ff02b02ed01fbee755ad017d9734cf8d2aa8682 Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 28 Aug 1995 19:24:35 +0000 Subject: 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... --- bin/sh/parser.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin/sh/parser.c') diff --git a/bin/sh/parser.c b/bin/sh/parser.c index 83830ec..067faa7 100644 --- a/bin/sh/parser.c +++ b/bin/sh/parser.c @@ -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); -- cgit v1.1