commit | 4f6e1aa67aea63df7fd5a84df940518dc7c5cf2f | [log] [tgz] |
---|---|---|
author | Stephen Warren <swarren@nvidia.com> | Mon Feb 03 13:21:05 2014 -0700 |
committer | Tom Rini <trini@ti.com> | Wed Feb 19 09:47:33 2014 -0500 |
tree | a331706ce42516b2aa0a253ac8ebce4071f7caec | |
parent | 08b763b4989d1f2ddf0d13dab7fd5a4eabf04aa8 [diff] |
cmd_test: evaluate to false without any arguments This emulates bash: $ if test; then echo yes; else echo no; fi no Currently, the code sets expr = -1 in this case, which gets mapped to 0 (true) at the end of do_test() by the logical -> shell exit code conversion. Signed-off-by: Stephen Warren <swarren@nvidia.com>