]> git.proxmox.com Git - mirror_edk2.git/commit - ShellPkg/Application/Shell/Shell.c
ShellPkg: Fix 'EfiShellExecute' doesn't get command status correctly.
authorQiu Shumin <shumin.qiu@intel.com>
Mon, 26 Oct 2015 13:28:01 +0000 (13:28 +0000)
committershenshushi <shenshushi@Edk2>
Mon, 26 Oct 2015 13:28:01 +0000 (13:28 +0000)
commit490ce43d92132653a6664971218e1cb330556391
treee43182c1f9c6d1f2e6309a00e1561cf40c84e6c4
parentc2305a4af8c78b5ce553e133e86140817851a9e8
ShellPkg: Fix 'EfiShellExecute' doesn't get command status correctly.

1. Add a new  function 'RunShellCommand' to return command status, thus 'EfiShellExecute' can get the command return status of 'CommandLine'.
2. Refine the code logic of 'EfiShellExecute' to make the new image of shell be loaded only if  'Environment' isn't NULL.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Signed-off-by: Jin Eric <eric.jin@intel.com>
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18664 6f19259b-4bc3-4df7-8a09-765794883524
ShellPkg/Application/Shell/Shell.c
ShellPkg/Application/Shell/Shell.h
ShellPkg/Application/Shell/ShellEnvVar.c
ShellPkg/Application/Shell/ShellProtocol.c