summaryrefslogtreecommitdiffstats
path: root/ShellPkg/Application
diff options
context:
space:
mode:
authorNi Ruiyu <ruiyu.ni@intel.com>2014-09-17 08:41:31 +0000
committershenshushi <shenshushi@6f19259b-4bc3-4df7-8a09-765794883524>2014-09-17 08:41:31 +0000
commit75eb337f6040933b0fedf04459f5fbd5b2f8f7c9 (patch)
treecd738652fdcd9a2528e5caa6d0b25b88d842f4ab /ShellPkg/Application
parent0960ba17e596812f211ba334cc6699d45bada328 (diff)
downloadedk2-75eb337f6040933b0fedf04459f5fbd5b2f8f7c9.tar.gz
edk2-75eb337f6040933b0fedf04459f5fbd5b2f8f7c9.tar.bz2
edk2-75eb337f6040933b0fedf04459f5fbd5b2f8f7c9.zip
ShellPkg: Do TrimSpace again after StdIn, StdOut, and StdErr are set up.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ni Ruiyu <ruiyu.ni@intel.com> Signed-off-by: Qiu Shumin <shumin.qiu@intel.com> Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16123 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Application')
-rw-r--r--ShellPkg/Application/Shell/Shell.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ShellPkg/Application/Shell/Shell.c b/ShellPkg/Application/Shell/Shell.c
index 40588759a2..627fab0ad0 100644
--- a/ShellPkg/Application/Shell/Shell.c
+++ b/ShellPkg/Application/Shell/Shell.c
@@ -2392,6 +2392,7 @@ SetupAndRunCommandOrFile(
// Now run the command, script, or application
//
if (!EFI_ERROR(Status)) {
+ TrimSpaces(&CmdLine);
Status = RunCommandOrFile(
Type,
CmdLine,