Skip to content
Commit 2453de99 authored by Stephen Warren's avatar Stephen Warren Committed by Tom Rini
Browse files

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's avatarStephen Warren <swarren@nvidia.com>
parent d9b651ce
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment