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] _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel