
Dear Rasmus Villemoes,
In message 20200108134247.31443-1-rasmus.villemoes@prevas.dk you wrote:
The printenv command already by default hides variables beginning with a dot. It can be useful to take that convention even further, and prevent such variables from ever being stored persistently (and ignored if they happen to exist in stable storage).
This way, one can freely use such variable names in script logic, without worrying about random temporary variables leaking to persistent storage and/or to/from another U-boot "session".
This is not a good idea. The decision whether a variable shall be stored permanently or not, or wheter it is readonly or writable, and other such properties should never based on their name. There may be many good reasons that some .name variable _shall_ be persistent.
Naked-by: Wolfgang Denk wd@denx.de
Best regards,
Wolfgang Denk