Philip Prindeville wrote:
>> + [ -n "$auth_alg_shared" ]&& \
>> + auth_alg_val=$(expr "$auth_alg_val" + 2)
>
> Just curious: why not use:
>
> let -i auth_alg_val+=2
>
> here instead?
let is Kornish. Straight Bourne needs to rely on expr for arithmetic. I wasn’t
aware that BusyBox ash supported let, although it turns out that it does—it’s
configurable, and is enabled in OpenWrt. For that matter, so is the $((...))
bashism.
No matter, I’ve got a simpler arithmetic-free patch coming, per jow’s request.
Read on…
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel