OSDN Git Service

Use $(( rather than $[ for arithmetic in expand.test.
authorElliott Hughes <enh@google.com>
Sat, 15 Apr 2017 18:27:18 +0000 (11:27 -0700)
committerRob Landley <rob@landley.net>
Mon, 17 Apr 2017 18:04:58 +0000 (13:04 -0500)
commit8d826bf4499d390f91296dd286cd5e847070fd78
tree3a8414b71fb590b92e61553f578360fa463287c4
parent151ac30a9fb2252f5fa77e0238c5f944d5b4659c
Use $(( rather than $[ for arithmetic in expand.test.

I can't find any reference to $[ for arithmetic on the bash man page, but it
seems to be a synonym for $((. mksh doesn't support this, so the expand tests
that use it fail on Android. No other toybox tests are using $[.
tests/expand.test