audk/ShellPkg/Application/Shell
Michael Kinney e044364b82 ShellPkg/Shell: Add double quotes to args with white space
https://bugzilla.tianocore.org/show_bug.cgi?id=332

When the ShellLib ShellExecute() API or the Shell
Protocol Execute() API are used to execute a
command, the arguments are parsed to produce the
Argc/Argv list in the Shell Parameters Protocol and
double quotes are removed from arguments that are
surrounded by double quotes.  This is the required
behavior of the Shell Parameters Protocol.

The ProcessCommandLine() function in the shell
implementation uses the Argc/Argv list from the
Shell Parameters Protocol to assemble a new command
line, but the double quotes that may have been
originally present for an argument are not preserved.

ProcessCommandLine() is updated to check if an
argument added to the generated command line
contains one or more white space characters, and
if it does, double quotes are added around the
argument.

Cc: Jaben Carsey <jaben.carsey@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Ruiyu Ni <Ruiyu.ni@intel.com>
2017-01-11 10:34:58 -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: Fix a bug ">>v" cannot append data to environment variable 2017-01-06 20:46:41 +08:00
FileHandleWrappers.h ShellPkg/Application: Remove unnecessary EFIAPI 2016-10-09 10:27:45 +08:00
Shell.c ShellPkg/Shell: Add double quotes to args with white space 2017-01-11 10:34:58 -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