[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: ash / shell scripting question / abort after Arithmetic Evaluation
From: Bastian Bittorf <bittorf () bluebottle ! com>
Date: 2015-06-25 8:19:01
Message-ID: 20150625081901.GG5927 () medion ! lan
[Download RAW message or body]
* Xabier Oneca -- xOneca <xoneca@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
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic