[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
1
1

and v1.23.2 will only output
1

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
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list