[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: feature request, vars local only to function running, not sub functi
From: |
Alex fxmbsw7 Ratchev |
Subject: |
Re: feature request, vars local only to function running, not sub functions running |
Date: |
Thu, 13 May 2021 10:56:32 +0200 |
good question yo what would it print then.....
i guess as i dont know ( you know, when thinking what should it print,
conflicts come ) i also cannot keep the feature request alive :/ :)
On Thu, May 13, 2021 at 5:18 AM Koichi Murase <myoga.murase@gmail.com> wrote:
>
> > foo=global
> > func1() { local foo=dynamic; func1; }
> > func2() { local -L foo=lexical; func2; }
> > func3() { echo $foo; }
>
> Sorry, there are typos, and the function call of func1 was missing:
>
> foo=global
> func1() { local foo=dynamic; func2; }
> func2() { local -L foo=lexical; func3; }
> func3() { echo $foo; }
> func1