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

Tom Rini trini at ti.com
Tue Feb 4 23:06:46 CET 2014


On Mon, Feb 03, 2014 at 01:21:05PM -0700, Stephen Warren wrote:

> From: Stephen Warren <swarren at nvidia.com>
> 
> 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 at nvidia.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140204/068737c2/attachment.pgp>


More information about the U-Boot mailing list