Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chris Phillips <chrisp@hp.com>
reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14850
6f19259b-4bc3-4df7-8a09-
765794883524
}\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
/** @file\r
Main file for If and else shell level 1 function.\r
\r
+ Copyright (c) 2013, Hewlett-Packard Development Company, L.P.\r
Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
continue;\r
}\r
CommandWalker = CommandName;\r
- while (CommandWalker[0] == L' ') {\r
+\r
+ //\r
+ // Skip leading spaces and tabs.\r
+ //\r
+ while ((CommandWalker[0] == L' ') || (CommandWalker[0] == L'\t')) {\r
CommandWalker++;\r
}\r
TempLocation = StrStr(CommandWalker, L" ");\r
NULL, \r
STRING_TOKEN (STR_SYNTAX_NO_MATCHING), \r
gShellLevel1HiiHandle, \r
- L"EnfIf", \r
+ L"EndIf", \r
L"If", \r
CurrentScriptFile!=NULL \r
&& CurrentScriptFile->CurrentCommand!=NULL\r
/** @file\r
Main file for NULL named library for level 1 shell command functions.\r
\r
+ Copyright (c) 2013, Hewlett-Packard Development Company, L.P.\r
Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
}\r
\r
CommandNameWalker = CommandName;\r
- while(CommandNameWalker[0] == L' ') {\r
+\r
+ //\r
+ // Skip leading spaces and tabs.\r
+ //\r
+ while ((CommandNameWalker[0] == L' ') || (CommandNameWalker[0] == L'\t')) {\r
CommandNameWalker++;\r
}\r
TempLocation = StrStr(CommandNameWalker, L" ");\r