commit | 08b763b4989d1f2ddf0d13dab7fd5a4eabf04aa8 | [log] [tgz] |
---|---|---|
author | Stephen Warren <swarren@nvidia.com> | Mon Feb 03 13:21:04 2014 -0700 |
committer | Tom Rini <trini@ti.com> | Wed Feb 19 09:47:33 2014 -0500 |
tree | 502a26e510bfe2309dff499af8eea0b08037a33e | |
parent | 4c1b28154bad13e4b1b6b8b2965389834f01f547 [diff] |
cmd_test: implement ! on sub-expressions Currently, ! can only be parsed as the first operator in an expression. This prevents the following from working: $ if test ! ! 1 -eq 1; then echo yes; else echo no; fi yes $ if test ! 1 -eq 2 -a ! 3 -eq 4; then echo yes; else echo no; fi yes Fix this by parsing ! like any other operator, and and handling it similarly to -a and -o. Signed-off-by: Stephen Warren <swarren@nvidia.com>