Re: [QUESTION] Clear a local variable in hush shell

2023-03-29 Thread Simon Glass
Hi Stefan, On Tue, 28 Mar 2023 at 20:29, Stefan Herbrechtsmeier 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

[QUESTION] Clear a local variable in hush shell

2023-03-28 Thread Stefan Herbrechtsmeier
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. Regards Stefan