]> git.dujemihanovic.xyz Git - u-boot.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)
commit9539f71675c40485e448efb3c4e06afc8d102f94
treee4a3d2be937c6593a057e8a8a077645f2af09d40
parentc146de48727da66ea7dc43f12bd41814cff2faa8
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