[U-Boot] cmd: clarification on 'env ask' command execution

Adarsh Babu Kalepalli learn2kab at gmail.com
Mon Oct 14 16:44:47 UTC 2019


Hi,

'help env' gives  usage for 'ask' option as :

"env ask name [message] [size] - ask for environment variable"

How are the optional parameters [message] and
[size] related to env variable 'name' ??

When I execute 'env' with option 'ask' and do not enter any value for the
environment variable, it is deleted.

---------------------------------------------------------------
=> printenv vendor
vendor=ti
=> env ask vendor
Please enter 'vendor': texasInstruments
=> printenv vendor
vendor=texasInstruments
=> env ask vendor
Please enter 'vendor':
=> printenv vendor
## Error: "vendor" not defined
=>
---------------------------------------------------------------
In this case,is it expected that the environment variable gets deleted??

Regards,
Adarsh


More information about the U-Boot mailing list