[OpenWrt-Devel] -ash: changed behaviour of local vars / v1.22.1 -> v1.23.2

Bastian Bittorf bittorf at bluebottle.com
Thu Apr 16 14:57:39 EDT 2015

while heavy testing of recent OpenWrt i
discovered the following problem:

x() { local x=1; echo $x; local x; echo $x; }

older busybox will output

and v1.23.2 will only output

this means: 'local varname' will empty the var.
is this a problem with a changed config? at least
i cannot find a corresponding changeset regarding ash.c

bye, bastian
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list