]> git.dujemihanovic.xyz Git - u-boot.git/commit
cli: hush_modern: Enable variables expansion for modern hush
authorFrancis Laniel <francis.laniel@amarulasolutions.com>
Fri, 22 Dec 2023 21:02:33 +0000 (22:02 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 28 Dec 2023 17:02:56 +0000 (12:02 -0500)
commit74e425407f1cb90df0dba7f1ae3cffa359168967
treea3b2eb3d638f5fbb517d65b95c37a08a961aa0f9
parent9a068377313c1feabb55072d2d1157999cf9d15e
cli: hush_modern: Enable variables expansion for modern hush

Enables variables expansion for modern hush, both for local and environment
variables.
So the following commands:
foo=bar
echo $foo
setenv bar foo
echo $bar
leads to "bar" and "foo" being printed on console output.

Signed-off-by: Francis Laniel <francis.laniel@amarulasolutions.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/cli_hush_modern.c
common/cli_hush_upstream.c