diff options
author | Andy Chu <andychu@google.com> | 2016-03-15 13:42:30 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2016-03-16 11:59:56 -0500 |
commit | 14c91c1ebd68daacce9794cf8894dcfea68efd7b (patch) | |
tree | 052b6e72b9e3fa926e70a5f01690863836a8d2c6 /scripts/test.sh | |
parent | 2665cd0cf0d1116fae397d5b598a5ae1bd055afa (diff) | |
download | toybox-14c91c1ebd68daacce9794cf8894dcfea68efd7b.tar.gz |
Fix the operator precedence in expr.
expr now uses the precedence table specified by POSIX, implemented using
the "precedence climbing" algorithm. See the references at the top of
eval_expr().
This fixes 3 of 4 failing tests.
I also added more tests for correct behavior and for syntax errors.
This includes a new test exposing a segfault, related to type coercion.
Diffstat (limited to 'scripts/test.sh')
0 files changed, 0 insertions, 0 deletions