[QUESTION] Clear a local variable in hush shell
Simon Glass
sjg at chromium.org
Wed Mar 29 22:02:15 CEST 2023
Hi Stefan,
On Tue, 28 Mar 2023 at 20:29, Stefan Herbrechtsmeier
<stefan.herbrechtsmeier-oss at weidmueller.com> wrote:
>
> Hi,
>
> what is the correct way to clear a local variable in the hush shell? The
> "c=" doesn't work because the commit "common: cli_hush: avoid dead code"
> (aa722529635c16c52d9d609122fecc96ec8d03e4) explicitly change the
> function set_local_var to return -1 if a value is missing.
I don't see how that changed anything, but perhaps there is a case I am missing.
Can you send a patch to fix it? It seems like a bug.
Regards,
SImon
More information about the U-Boot
mailing list