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

Felix Fietkau nbd at openwrt.org
Thu Apr 16 20:03:29 EDT 2015


On 2015-04-16 20:57, Bastian Bittorf wrote:
> 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
Thanks for reporting this. Fix committed in r45471 and submitted upstream.

- Felix
_______________________________________________
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