help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] distinguish local function and global function


From: Chet Ramey
Subject: Re: [Help-bash] distinguish local function and global function
Date: Mon, 5 Mar 2018 14:22:49 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 3/5/18 12:17 PM, Peng Yu wrote:
> The following example shows that a local function can be defined
> within a function.

There are no such things as `local' functions. All functions exist at
the global scope.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]