[U-Boot] [BUG] cmd : Local Hush Variable Could not be deleted
Adarsh Babu Kalepalli
learn2kab at gmail.com
Mon Oct 14 14:35:04 UTC 2019
Hello Wolfgang Denk,
> => localvar=
> => showvar
> HUSH_VERSION=0.01
> target=pxe
> devnum=1
> localvar=hello
When 'localvar' is assigned an empty value , the 'showvar' command
displays the previously assigned 'hello'.
How do we set an empty value to a hush shell local variable ??
Regards,
Adarsh
On Mon, Oct 14, 2019 at 3:58 PM Wolfgang Denk <wd at denx.de> wrote:
> Dear Adarsh Babu Kalepalli,
>
> In message <
> CAJgxa7c150OvA0bHPROWuizG+DvLrReRbqAoJ96QXkwhhhZsug at mail.gmail.com> you
> wrote:
> >
> > How do I delete a hush-shell local variable??
>
> You cannot. Local variables can be set to an empty value, but they
> cannot be deleted.
>
> Note that there is no functional difference between a non-existing
> local variable and one with an empty value anyway. Same as in other
> shells.
>
> Best regards,
>
> Wolfgang Denk
>
> --
> DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> Carelessly planned projects take three times longer to complete than
> expected. Carefully planned projects take four times longer to
> complete than expected, mostly because the planners expect their
> planning to reduce the time it takes.
>
More information about the U-Boot
mailing list