audk/ShellPkg/Application/Shell
Chen A Chen c5c994c573 ShellPkg/Application: Fix ">v" cannot update environment variable
When ">v" is used to redirect the command output to environment
variable (e.g.: "echo xxx >v yyy"), we only called SetVariable()
to update the variable storage but forgot to update the cached
environment variables in gShellEnvVarList.
When updating the variable storage, the existing code unnecessary
saved the ending NULL character into variable storage.

The patch fixes all the above issues.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chen A Chen <chen.a.chen@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Tapan Shah <tapandshah@hpe.com>
2016-12-09 09:26:28 +08:00
..
ConsoleLogger.c ShellPkg/Application: Remove unnecessary EFIAPI 2016-10-09 10:27:45 +08:00
ConsoleLogger.h ShellPkg/Application: Remove unnecessary EFIAPI 2016-10-09 10:27:45 +08:00
ConsoleWrappers.c ShellPkg/Application: Remove unnecessary EFIAPI 2016-10-09 10:27:45 +08:00
ConsoleWrappers.h ShellPkg/Application: Remove unnecessary EFIAPI 2016-10-09 10:27:45 +08:00
FileHandleInternal.h ShellPkg/Application: Remove unnecessary EFIAPI 2016-10-09 10:27:45 +08:00
FileHandleWrappers.c ShellPkg/Application: Fix ">v" cannot update environment variable 2016-12-09 09:26:28 +08:00
FileHandleWrappers.h ShellPkg/Application: Remove unnecessary EFIAPI 2016-10-09 10:27:45 +08:00
Shell.c ShellPkg/Application: Remove unnecessary EFIAPI 2016-10-09 10:27:45 +08:00
Shell.h ShellPkg: Update sources to include MdePkg protocol definitions 2016-10-19 10:26:16 +08:00
Shell.inf ShellPkg: Update Guid/Protocol usages in INF files. 2016-04-13 14:52:59 +08:00
Shell.uni report line number for command errors in a script. 2016-05-12 08:15:00 -07:00
ShellEnvVar.c ShellPkg/Application: Fix ">v" cannot update environment variable 2016-12-09 09:26:28 +08:00
ShellEnvVar.h ShellPkg/Application: Remove unnecessary EFIAPI 2016-10-09 10:27:45 +08:00
ShellManParser.c ShellPkg/Application: Remove unnecessary EFIAPI 2016-10-09 10:27:45 +08:00
ShellManParser.h ShellPkg/Application: Remove unnecessary EFIAPI 2016-10-09 10:27:45 +08:00
ShellParametersProtocol.c ShellPkg/Application: Remove unnecessary EFIAPI 2016-10-09 10:27:45 +08:00
ShellParametersProtocol.h ShellPkg/Application: Remove unnecessary EFIAPI 2016-10-09 10:27:45 +08:00
ShellProtocol.c ShellPkg/Application: Fix ">v" cannot update environment variable 2016-12-09 09:26:28 +08:00
ShellProtocol.h ShellPkg/Application: Remove unnecessary EFIAPI 2016-10-09 10:27:45 +08:00