summaryrefslogtreecommitdiffstats
path: root/QuarkPlatformPkg/Library/Tpm12DeviceLibAtmelI2c/Tpm12DeviceLibAtmelI2c.inf
diff options
context:
space:
mode:
authorMichael Kinney <michael.d.kinney@intel.com>2017-01-06 14:30:44 -0800
committerMichael Kinney <michael.d.kinney@intel.com>2017-01-11 10:34:58 -0800
commite044364b82e63047980606c388f4854b7c41e947 (patch)
treec61057d75420860387226ebde6eb349e2f3b559a /QuarkPlatformPkg/Library/Tpm12DeviceLibAtmelI2c/Tpm12DeviceLibAtmelI2c.inf
parentf7c11d9b995cc59cdbda0b790eafbc510b50b82d (diff)
downloadedk2-e044364b82e63047980606c388f4854b7c41e947.tar.gz
edk2-e044364b82e63047980606c388f4854b7c41e947.tar.bz2
edk2-e044364b82e63047980606c388f4854b7c41e947.zip
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>
Diffstat (limited to 'QuarkPlatformPkg/Library/Tpm12DeviceLibAtmelI2c/Tpm12DeviceLibAtmelI2c.inf')
0 files changed, 0 insertions, 0 deletions