ShellPkg: pre-verify split commands
This makes sure that all parts of commands split via pipe operation are valid before starting. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15011 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -132,6 +132,32 @@ typedef enum {
|
||||
UNKNOWN_INVALID
|
||||
} SHELL_OPERATION_TYPES;
|
||||
|
||||
/**
|
||||
Converts the command line to it's post-processed form. this replaces variables and alias' per UEFI Shell spec.
|
||||
|
||||
@param[in,out] CmdLine pointer to the command line to update
|
||||
|
||||
@retval EFI_SUCCESS The operation was successful
|
||||
@retval EFI_OUT_OF_RESOURCES A memory allocation failed.
|
||||
@return some other error occured
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
ProcessCommandLineToFinal(
|
||||
IN OUT CHAR16 **CmdLine
|
||||
);
|
||||
|
||||
/**
|
||||
Function to update the shell variable "lasterror"
|
||||
|
||||
@param[in] ErrorCode the error code to put into lasterror
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
SetLastError(
|
||||
IN CONST SHELL_STATUS ErrorCode
|
||||
);
|
||||
|
||||
/**
|
||||
Sets all the alias' that were registered with the ShellCommandLib library.
|
||||
|
||||
|
Reference in New Issue
Block a user