1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-03 17:52:07 +02:00
Files
u-boot-megous/common
Stephen Warren 4c80f29edd 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>
2014-02-19 09:47:33 -05:00
..
2013-04-01 16:33:52 -04:00
2013-04-01 16:33:52 -04:00
2014-02-04 16:32:20 +01:00
2013-08-16 13:45:15 -04:00
2013-11-08 15:25:14 -05:00
2013-05-31 17:12:03 -05:00
2013-04-01 16:33:52 -04:00
2013-04-01 16:33:52 -04:00
2014-01-14 09:01:06 -05:00
2014-01-14 09:01:06 -05:00
2013-08-06 23:58:43 +05:30
2013-09-20 10:30:54 -04:00
2013-09-20 10:30:54 -04:00
2014-02-04 16:32:20 +01:00