bug-bash
[Top][All Lists]
Advanced

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

Re: Bug in Bash on syntax error in functions?


From: Chet Ramey
Subject: Re: Bug in Bash on syntax error in functions?
Date: Fri, 8 Apr 2022 16:46:43 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.7.0

On 4/8/22 4:33 PM, Lawrence Velázquez wrote:

Notably, these don't execute "echo b" either, demonstrating that
this isn't actually about functions at all.

I may have been too obscure saying the function body was a brace group
command.


     {
         echo a
         echo "$[ 1 + ]"
         echo b
     }


--
``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]