diff options
author | Stephen Warren <swarren@nvidia.com> | 2014-02-03 13:21:03 -0700 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-02-19 09:47:33 -0500 |
commit | 4c80f29edd33cc613d01c5e93dde380b98d3c20c (patch) | |
tree | d8f9f205d32d1d02d446ad97813aaeb613273d10 /board/esteem192e | |
parent | 490ba833d5a7804ca81b13b3f8f2c37aadc40009 (diff) | |
download | u-boot-imx-4c80f29edd33cc613d01c5e93dde380b98d3c20c.zip u-boot-imx-4c80f29edd33cc613d01c5e93dde380b98d3c20c.tar.gz u-boot-imx-4c80f29edd33cc613d01c5e93dde380b98d3c20c.tar.bz2 |
cmd_test: check for binary operators before unary
This better mirrors the behaviour of bash, for example:
$ if test -z = -z; then echo yes; else echo no; fi
yes
This is parsed as a string comparison of "-z" and "-z", since the check
for the binary "=" operator occurs first. Without this change, the
command would be parsed as a -z test of "-", followed by a syntax error;
a trailing -z without and operand.
This is a behavioural change, but I believe any commands affected were
previously invalid or bizarely formed.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'board/esteem192e')
0 files changed, 0 insertions, 0 deletions