All of lore.kernel.org
 help / color / mirror / Atom feed
* [QUESTION] Clear a local variable in hush shell
@ 2023-03-28  7:29 Stefan Herbrechtsmeier
  2023-03-29 20:02 ` Simon Glass
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Herbrechtsmeier @ 2023-03-28  7:29 UTC (permalink / raw)
  To: U-Boot Mailing List, Peng Fan

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [QUESTION] Clear a local variable in hush shell
  2023-03-28  7:29 [QUESTION] Clear a local variable in hush shell Stefan Herbrechtsmeier
@ 2023-03-29 20:02 ` Simon Glass
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Glass @ 2023-03-29 20:02 UTC (permalink / raw)
  To: Stefan Herbrechtsmeier; +Cc: U-Boot Mailing List, Peng Fan

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-29 20:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-28  7:29 [QUESTION] Clear a local variable in hush shell Stefan Herbrechtsmeier
2023-03-29 20:02 ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.