]> git.baikalelectronics.ru Git - uboot.git/commit
hush: Fix assignments being misinterpreted as commands
authorSean Anderson <seanga2@gmail.com>
Sun, 28 Feb 2021 21:29:51 +0000 (16:29 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 12 Apr 2021 21:17:11 +0000 (17:17 -0400)
commite7fe1cb7ae2bf0e156f61100f919a606a611bf27
treee4a3d2be937c6593a057e8a8a077645f2af09d40
parent7c4c4776bbe48d752695cdc728c1be1c15a3dbb4
hush: Fix assignments being misinterpreted as commands

If there were no variable substitutions in a command, then initial
assignments would be misinterpreted as commands, instead of being skipped
over. This is demonstrated by the following example:

=> foo=bar echo baz
Unknown command 'foo=bar' - try 'help'

Signed-off-by: Sean Anderson <seanga2@gmail.com>
common/cli_hush.c
test/cmd/test_echo.c