]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg: Fix a bug ">>v" cannot append data to environment variable
authorChen A Chen <chen.a.chen@intel.com>
Wed, 4 Jan 2017 03:28:03 +0000 (11:28 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Fri, 6 Jan 2017 12:46:41 +0000 (20:46 +0800)
commit5016d46603addf62656590e83375074abc321f23
tree664de031e65d7eedd5b3fdd95ef5d325870b7048
parentdd6d0a520eec0fd3fc455ac7345ac0c06095a511
ShellPkg: Fix a bug ">>v" cannot append data to environment variable

When ">v" is used to redirect the command output to environment
variable, the ending "\r\n\0" is removed before setting to environment
variable but the length is not updated.
It causes ">>v" fails to append data to the environment variable
created by ">v".
The patch fixes the above bug.

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>
ShellPkg/Application/Shell/FileHandleWrappers.c