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: Roel Van de Paar
Subject: Re: Bug in Bash on syntax error in functions?
Date: Sat, 9 Apr 2022 07:12:36 +1000

Understood. Thank you both.

On Sat, Apr 9, 2022 at 6:46 AM Chet Ramey <chet.ramey@case.edu> wrote:

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