]> git.proxmox.com Git - mirror_edk2.git/commit - ShellPkg/Application/Shell/Shell.c
ShellPkg: Do not mix status when executing a command
authorOlivier Martin <olivier.martin@arm.com>
Tue, 13 May 2014 21:16:42 +0000 (21:16 +0000)
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 13 May 2014 21:16:42 +0000 (21:16 +0000)
commitcd39fe082c886243b934b1ff4170ab32bbd0db2c
tree95ad28d768b1c71ac6460019d2075ce10efdf305
parent93e8d03cd178cde473672a29b4f0d7ff4d2ffdbc
ShellPkg: Do not mix status when executing a command

The function InternalShellExecuteDevicePath() did not differentiate an error occuring during the preparation of an image and an error occurring during its execution.

A use case of the issue was when a EFI application was called in a EFI Shell script. If the EFI application was returning an error then the NSH script stopped its execution. While the EFI Shell specification says the script should continue its execution (see 4.2 Error Handling).

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Jaben Carsey <Jaben.Carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15523 6f19259b-4bc3-4df7-8a09-765794883524
ShellPkg/Application/Shell/Shell.c
ShellPkg/Application/Shell/ShellProtocol.c
ShellPkg/Application/Shell/ShellProtocol.h