From 75eb337f6040933b0fedf04459f5fbd5b2f8f7c9 Mon Sep 17 00:00:00 2001 From: Ni Ruiyu Date: Wed, 17 Sep 2014 08:41:31 +0000 Subject: [PATCH] ShellPkg: Do TrimSpace again after StdIn, StdOut, and StdErr are set up. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ni Ruiyu Signed-off-by: Qiu Shumin Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16123 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Application/Shell/Shell.c | 1 + 1 file changed, 1 insertion(+) 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, -- 2.39.2