public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [shell] Redirected Environment Variables Are Not Saved Correctly
@ 2016-12-02  9:20 Tim Lewis
  0 siblings, 0 replies; only message in thread
From: Tim Lewis @ 2016-12-02  9:20 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

Test by doing this, immediately after booting:

Notice that echo has created a new environment variable _key to the value 4, But this variable does not show up when running "set"

Why? It is because the FileHandleWrappers does not use SetEnvironmentVariable. Instead, it tries to read and write the UEFI variable directly. But this method does not update the internal list of environment variables maintained by the Shell Protocol API.

This causes a lot of issues, because the results of any console redirection to an environment variable is not immediately visible.

Tim

[cid:image001.png@01D24C37.475327F0]


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-12-02  9:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-02  9:20 [shell] Redirected Environment Variables Are Not Saved Correctly Tim Lewis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox