[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [PATCH 1/2] ash: consider "local -" case while iterating over local variables in mklocal.
From: Eugene Rudoy <gene.devel () gmail ! com>
Date: 2015-04-27 11:11:29
Message-ID: CAHQBeznhwiAw03ZkKjP65tBXHUObxfGyiEeUrk7v321DFGT_sg () mail ! gmail ! com
[Download RAW message or body]
Hi Bastian,
On Mon, Apr 27, 2015 at 8:47 AM, Bastian Bittorf <bittorf@bluebottle.com> wrote:
> Thanks for that - i did'nt know this till yet,
> and cannot find anything about 'local -' in the net,
> do you have a link?
the wording in the FreeBSD version of "man sh" is the most clear one (s. [1]):
The only special parameter that can be made local is `-'. Making `-'
local causes any shell options that are changed via the set command
inside the function to be restored to their original values when the
function returns.
Best regards,
Gene
[1] http://www.freebsd.org/cgi/man.cgi?query=sh
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic