Re: [U-Boot] [PATCH V4 07/12] cmd_test: evaluate to false without any arguments

2014-02-04 Thread Tom Rini
On Mon, Feb 03, 2014 at 01:21:05PM -0700, Stephen Warren wrote: > From: Stephen Warren > > 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 e

[U-Boot] [PATCH V4 07/12] cmd_test: evaluate to false without any arguments

2014-02-03 Thread Stephen Warren
From: Stephen Warren 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 --- v4: No change. v3: New p