[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: local functions
From: |
Chet Ramey |
Subject: |
Re: local functions |
Date: |
Thu, 10 Dec 2020 08:46:59 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 |
On 12/10/20 8:34 AM, Christof Warlich wrote:
Hi,
$ help declare
says:
...
When used in a function, `declare' makes NAMEs local, as with the
`local'
command.
...
Furthermore, bash allows to define a function within another function:
There are no local functions. That's not an object type that exists.
--
``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/