ash / shell scripting question / abort after Arithmetic Evaluation

Bastian Bittorf bittorf at bluebottle.com
Thu Jun 25 08:19:01 UTC 2015


* Xabier Oneca -- xOneca <xoneca at gmail.com> [25.06.2015 07:10]:
> I think it is copied from Bash behavior. According to bash(1) doc:
> (section ARITHMETIC EVALUATION)
> 
> > A shell variable that is null or unset evaluates to 0 when referenced by name without using the parameter expansion syntax.

thank you, that makes sense - at least we have this issue in the archive
now, and internally we only use the syntax without '$' now, e.g.

val=$(( b / int ))

bye, bastian


More information about the busybox mailing list