]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Application/Shell/Shell.c
ShellPkg: Do TrimSpace again after StdIn, StdOut, and StdErr are set up.
[mirror_edk2.git] / ShellPkg / Application / Shell / Shell.c
index 40588759a2e9e8ea1279f5daec8591d5d6a7cae0..627fab0ad03550e5e990c037994a783f42d0f679 100644 (file)
@@ -2392,6 +2392,7 @@ SetupAndRunCommandOrFile(
   // Now run the command, script, or application\r
   //\r
   if (!EFI_ERROR(Status)) {\r
+    TrimSpaces(&CmdLine);\r
     Status = RunCommandOrFile(\r
               Type,\r
               CmdLine,\r