Re: There's no way to declare a function local to another function.

2025-06-10 Thread Robert Elz
Date:Tue, 10 Jun 2025 17:34:44 -0400 From:Zachary Santer Message-ID: | Functions can be declared inside of other functions, so I thought | doing the following was pretty slick: Function definitions aren't declarations in any sense similar to other programming l

There's no way to declare a function local to another function.

2025-06-10 Thread Zachary Santer
Functions can be declared inside of other functions, so I thought doing the following was pretty slick: main () { [...] case "${var}" in ( 'case 1' ) func1 () { [...] } func2 () { [...] } ;; ( 'case 2' ) func1 () { [...] } func2 () {