help-bash
[Top][All Lists]
Advanced

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

Re: feature request : at ' unexpected end of fille ' error msg append al


From: alex xmb sw ratchev
Subject: Re: feature request : at ' unexpected end of fille ' error msg append also the still-open direcrive
Date: Fri, 16 Aug 2024 15:29:06 +0200

then that is already implented .. great ..

does it also warn of { ' " etc

On Fri, Aug 16, 2024, 15:25 Chet Ramey <chet.ramey@case.edu> wrote:

> On 8/16/24 8:49 AM, alex xmb sw ratchev wrote:
> > .. extend that err msg to include info where what is open
> >
> > .. i had some times it wasnt easy to see where what is open
> > just like with my same - hour post
>
> bash-5.3 includes line number information where the unclosed construct
> (case/select/for/if/while/until) begins in error messages. For example,
>
> for f in 1 2 3 4
> do
>         while true; do
>                 echo abcde
>         done
>
> produces
>
> x3: line 6: syntax error: unexpected end of file from command on line 1
>
>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>                  ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/
>


reply via email to

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