[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error message for missing fi is not helpful

From: Chet Ramey
Subject: Re: error message for missing fi is not helpful
Date: Wed, 12 Sep 2018 09:35:41 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 9/12/18 5:17 AM, Manuel Reiter wrote:

> Bash Version: 4.4
> Patch Level: 12
> Release Status: release
> ++ Description:
> When an if statement is not terminated by a fi, bash's error message is
> not helpful in locating the problem.

This is tough to do in a bison-generated parser. If someone would like to
build the structures required to keep track of which conditional command
the shell is currently parsing, and incorporate that into an error
message, I'd be happy to look at it.


``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]