From 13acebbdefedb58ffd9f8e90ebc740404dcd1726 Mon Sep 17 00:00:00 2001 From: Chris Phillips Date: Fri, 15 Nov 2013 18:41:50 +0000 Subject: ShellPkg: Skip leading tabs when processing command line and scripts Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Phillips reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14850 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Application/Shell/Shell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ShellPkg/Application/Shell') diff --git a/ShellPkg/Application/Shell/Shell.c b/ShellPkg/Application/Shell/Shell.c index 0ce1665d84..1b52692ece 100644 --- a/ShellPkg/Application/Shell/Shell.c +++ b/ShellPkg/Application/Shell/Shell.c @@ -1415,9 +1415,9 @@ RunCommand( } // - // Remove any spaces at the beginning of the string. + // Remove any spaces and tabs at the beginning of the string. // - while (CleanOriginal[0] == L' ') { + while ((CleanOriginal[0] == L' ') || (CleanOriginal[0] == L'\t')) { CopyMem(CleanOriginal, CleanOriginal+1, StrSize(CleanOriginal) - sizeof(CleanOriginal[0])); } -- cgit v1.2.3