[PATCH 1/2] ash: consider "local -" case while iterating over local variables in mklocal.
Eugene Rudoy
gene.devel at gmail.com
Mon Apr 27 11:11:29 UTC 2015
Hi Bastian,
On Mon, Apr 27, 2015 at 8:47 AM, Bastian Bittorf <bittorf at 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
More information about the busybox
mailing list