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: Chet Ramey
Subject: Re: feature request : at ' unexpected end of fille ' error msg append also the still-open direcrive
Date: Fri, 16 Aug 2024 09:25:54 -0400
User-agent: Mozilla Thunderbird

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/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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