]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Application/Shell/Shell.c
ShellPkg: Skip leading tabs when processing command line and scripts
[mirror_edk2.git] / ShellPkg / Application / Shell / Shell.c
index 0ce1665d84577f6c4b443ac7c941fa9be0078783..1b52692ecec79793647ad32aec287171451938a3 100644 (file)
@@ -1415,9 +1415,9 @@ RunCommand(
   }\r
 \r
   //\r
-  // Remove any spaces at the beginning of the string.\r
+  // Remove any spaces and tabs at the beginning of the string.\r
   //\r
-  while (CleanOriginal[0] == L' ') {\r
+  while ((CleanOriginal[0] == L' ') || (CleanOriginal[0] == L'\t')) {\r
     CopyMem(CleanOriginal, CleanOriginal+1, StrSize(CleanOriginal) - sizeof(CleanOriginal[0]));\r
   }\r
 \r