help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] nested local function


From: Chet Ramey
Subject: Re: [Help-bash] nested local function
Date: Mon, 04 Jun 2012 15:10:09 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:11.0) Gecko/20120327 Thunderbird/11.0.1

On 6/4/12 1:10 PM, Peng Yu wrote:
> Hi,
> 
> I think that there is no way to define a local function in function.

There are no local functions in bash (or sh, or Posix).  Regardless of
when or how they are defined, all functions are global.

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



reply via email to

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