[U-Boot] [BUG] cmd : Local Hush Variable Could not be deleted

Wolfgang Denk wd at denx.de
Tue Oct 15 09:19:48 UTC 2019


Dear Adarsh,

In message <CAJgxa7d3UPKdNcqegTE1ipOrBpx8jY4Q1MMyuWXQeKvTUbbGrQ at mail.gmail.com> you wrote:
>
> > => 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'.

Sorry, I missed that detail.


> How do we set an empty value to a hush shell local variable ??

You are right, this is a real bug. Not even using an explicit empty
string argument does work here:

U-Boot> foo=hello
U-Boot> showvar
HUSH_VERSION=0.01
foo=hello
U-Boot> foo=''
U-Boot> showvar
HUSH_VERSION=0.01
foo=hello



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
It is better to marry than to burn.
                                - Bible ``I Corinthians'' ch. 7, v. 9


More information about the U-Boot mailing list