[PATCH v2 1/1] cmd/setexpr: support concatenation of direct strings

Tom Rini trini at konsulko.com
Mon Jan 20 21:52:32 CET 2025


On Sun, Jan 05, 2025 at 11:46:14AM +0100, Heinrich Schuchardt wrote:

> The setexpr.s command allows to concatenate two strings.
> 
> According to the description in doc/usage/cmd/setexpr.rst the parameters
> value1 and value2 can be either direct values or pointers to a
> memory location holding the values.
> 
> Unfortunately `setexpr.s <value1> + <value2>` fails if any of the values
> is a direct value. $? is set to false.
> 
> * Add support for direct values in setexpr.s.
> * Correct the unit test for "setexpr.s fred 0".
> * Add a new unit test for "setexpr.s fred '1' + '3'" giving '13'.
> 
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>

This causes ut_setexpr_setexpr_test_str to fail.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250120/01f06704/attachment.sig>


More information about the U-Boot mailing list