[QUESTION] Clear a local variable in hush shell

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
________________________________ Kommanditgesellschaft - Sitz: Detmold - Amtsgericht Lemgo HRA 2790 - Komplementärin: Weidmüller Interface Führungsgesellschaft mbH - Sitz: Detmold - Amtsgericht Lemgo HRB 3924; Geschäftsführer: Dr. Timo Berger, Volker Bibelhausen, André Sombecki; USt-ID-Nr. DE124599660

Hi Stefan,
On Tue, 28 Mar 2023 at 20:29, Stefan Herbrechtsmeier stefan.herbrechtsmeier-oss@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
participants (2)
-
Simon Glass
-
Stefan Herbrechtsmeier