[Top][All Lists]

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

Re: [Help-bash] make function local

From: Chet Ramey
Subject: Re: [Help-bash] make function local
Date: Sat, 11 Apr 2015 13:32:40 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

On 4/9/15 1:05 AM, Dan Douglas wrote:

>     3. Whoever ends up implementing this could have better spent their time
>     adding the sorely needed `shopt' option that localizes options so
> that scripts
>     don't have to. ;-)

The 4.4 devel branch includes a feature from NetBSD's sh that allows the
single-letter options to be saved and restored during a shell function's
execution using `local -'.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden

reply via email to

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