History log of /device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/For.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8337590c42df0b0f89487077326a62768e7434ab 09-Sep-2015 Qiu Shumin <shumin.qiu@intel.com> ShellPkg: Fix 'for' command fail with multiple fields.

When multiple fields are found in 'for' command return invalid parameters error.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18416 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/For.c
c011b6c9e2baf57fc0557117e9875ceb3dca55a3 04-Feb-2015 Tapan Shah <tapandshah@hp.com> ShellPkg: Standardized HP Copyright Message String

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Tapan Shah <tapandshah@hp.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16759 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/For.c
0861edab304ce5eb6c721eb3e3b90c8d06abb50b 03-Feb-2015 Tapan Shah <tapandshah@hp.com> ShellPkg: Update Level1 profile commands response output

Updates to Level1 profile commands response output.
Updating Level1 profile commands source code to include command name as a prefix in error message.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Tapan Shah <tapandshah@hp.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16728 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/For.c
3a3395f06b95ad5a0a78e23d293929e6809e09e5 17-Sep-2014 Qiu Shumin <shumin.qiu@intel.com> ShellPkg: Remove redundant quotes for command 'FOR' in Shell.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16121 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/For.c
81cd2f536ef0097392b51f96405321ce7b01350c 26-Jun-2014 Eric Dong <eric.dong@intel.com> Refine code to make it more safely.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15593 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/For.c
5b05611330bf23450a688bf1899de9525d82b654 05-Feb-2014 Leandro G. Biss Becker <lbecker@positivo.com.br> ShellPkg: patch to the "for" command when used with "in" iterating files in a folder. (for %x in *.txt). The result values (%x) have misplaced quotation marks and some spaces.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Leandro G. Biss Becker <lbecker@positivo.com.br>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15212 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/For.c
c81863953f2aca16b2347e7e9977a06fcd1f13aa 17-Dec-2013 Jaben Carsey <jaben.carsey@intel.com> ShellPkg: Fix "for" command statement initialization.

The shell was failing to correctly parse up to the space only for “run (1 3)” and also losing the space for “in ” a b” c” for loop initialization. This fixes for initialization to be correct.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14997 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/For.c
e82edcf914c188271a9f6ebca6205c7e5c6b1276 15-Nov-2013 Jaben Carsey <Jaben.carsey@intel.com> ShellPkg: "For Run" fix for spaces between numerals
Since this is expected to use a string with spaces between some of the numbers, the function must halt on spaces and not skip them.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <Jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14854 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/For.c
b471606bdf566d8cb050239d863b7231064edec2 05-Jan-2012 jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> ShellPkg: fix For command parsing list of values.

Fix a check that was checking twice for double quote '"' and not for space ' '.

signed-off-by: jcarsey
reviewed-by: geekboy15a

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12910 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/For.c
2d3759d8b5f48c487a9ea749ae2e453a58c36f47 17-Nov-2011 jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> ShellPkg: Update the ‘for’ command to check number length correctly with trailing spaces.

This fix corrects the logic that checks number length such that is functions correctly without a trailing space.

Signed-off-by: jcarsey
Reviewed-by: geekboy15a



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12736 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/For.c
532691c8ba90e5022174503ab0781322c6f79cab 14-Oct-2011 jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> ShellPkg: Add checking for memory allocation and pointer returns from functions.

signed-off-by: jcarsey
reviewed-by: geekboy15a

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12540 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/For.c
4ff7e37b4f7e336a8ecb7080b8f48eef4b52d396 02-Sep-2011 ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> Refine comments and two code style.

Signed-off-by: ydong10

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12263 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/For.c
d8f8021cbe89187c443e6a9ee89eb3edc8248ab4 07-Apr-2011 jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> ShellParametersProtocol - remove parsing from within quoted parameters.
Pci - Add missing enumeration in switch statement.
For - Verify parameter before dereferencing.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11511 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/For.c
cbdd109b43c8386d74a7bb40d892e5c2485f71f9 04-Apr-2011 jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> check memory allocations for success.

check pointer before access.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11503 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/For.c
ae724571beb0cff6edefe42942b7cdc7aa81ee94 02-Apr-2011 jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> Comment's added and fixed.

Pointer's checked for NULL before access and after memory allocations.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11499 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/For.c
33c031ee2092282a069ce07d30202082ceaf61fe 30-Mar-2011 jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> pointer verification (not NULL) and buffer overrun fixes.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11459 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/For.c
77dcec128bde3e7f0db64d60501b5a072f9f0e8f 25-Mar-2011 jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> Updating level 1 commands.

exit - correctly convert the parameter to the return code.
for - update string-to-number conversion.
if - use shell string-to-number conversion and add comments.
stall- add command

main lib files:
add comments, clarify user visible strings, add stall.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11420 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/For.c
9ea69f8a05b808b4bab81b608436a02e2f2fba09 04-Oct-2010 jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> Verify memory allocations were successful.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10909 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/For.c
a405b86d274d32b92f69842bfb9a1ab143128f57 14-Sep-2010 jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> udk2010.up2.shell initial release.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10874 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellLevel1CommandsLib/For.c