Qiu Shumin 
							
						 
					 
					
						
						
							
						
						de4caceb8b 
					 
					
						
						
							
							ShellPkg: Remove 'STATIC' from function declarations to avoid source level debugging problem.  
						
						... 
						
						
						
						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@15975  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-08-29 01:30:43 +00:00 
						 
				 
			
				
					
						
							
							
								Jaben Carsey 
							
						 
					 
					
						
						
							
						
						5eadb80f09 
					 
					
						
						
							
							ShellPkg: leave quotes around params  
						
						... 
						
						
						
						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@15875  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-08-21 22:13:08 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Phillips 
							
						 
					 
					
						
						
							
						
						d41a79a0da 
					 
					
						
						
							
							ShellPkg: Add support for UEFI Shell 2.1 spec command line comments  
						
						... 
						
						
						
						Example:
Shell> echo "You are ^#1!" # Testing echo
You are #1 !
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@15871  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-08-21 20:18:47 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Phillips 
							
						 
					 
					
						
						
							
						
						838b31a68c 
					 
					
						
						
							
							ShellPkg: Fix EFI_SHELL_PROTOCOL to contain new members from UEFI Shell 2.1 spec  
						
						... 
						
						
						
						- Removes EFI_SHELL_PROTOCOL21
- Adds RegisterGuidName, GetGuidName, GetGuidFromName, and GetEnvEx to EFI_SHELL_PROTOCOL
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@15818  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-08-18 20:00:08 +00:00 
						 
				 
			
				
					
						
							
							
								Qiu Shumin 
							
						 
					 
					
						
						
							
						
						f5ba4007ae 
					 
					
						
						
							
							ShellPkg: Fix comments. Refine code style.  
						
						... 
						
						
						
						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@15815  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-08-18 00:48:22 +00:00 
						 
				 
			
				
					
						
							
							
								Jaben Carsey 
							
						 
					 
					
						
						
							
						
						09fd5328a4 
					 
					
						
						
							
							Updates the UEFI Shell to produce the new protocol with additional 4 functions.  
						
						... 
						
						
						
						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 >
Reviewed by: Daryl McDaniel <daryl.mcdaniel@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15764  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-08-06 16:18:38 +00:00 
						 
				 
			
				
					
						
							
							
								Laszlo Ersek 
							
						 
					 
					
						
						
							
						
						5967886d58 
					 
					
						
						
							
							ShellPkg: UpdateStdInStdOutStdErr(): append BOM to new unicode file  
						
						... 
						
						
						
						The >> operator redirects stdout to a file, using append mode and unicode
encoding. Write the BOM when redirection happens to a new file (which
starts out empty).
This makes the >> operator behave similarly to the > operator, when the
redirection target doesn't exist originally:
  OutUnicode && OutAppend && FileSize == 0 // >> to new unicode file
vs.
  OutUnicode && !OutAppend                 // >  to any unicode file
(Note that (FileSize == 0) is equivalent to "new file" in this context,
due to the earlier "Check that filetypes (Unicode/Ascii) do not change
during an append".)
Reported-by: Lowell Dennis <Lowell_Dennis@Dell.com >
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15725  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-07-31 15:44:43 +00:00 
						 
				 
			
				
					
						
							
							
								Laszlo Ersek 
							
						 
					 
					
						
						
							
						
						94c2a04449 
					 
					
						
						
							
							ShellPkg: UpdateStdInStdOutStdErr(): extract WriteFileTag()  
						
						... 
						
						
						
						Drop TagBuffer in the process.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15724  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-07-31 15:44:30 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Dong 
							
						 
					 
					
						
						
							
						
						0d807dae4a 
					 
					
						
						
							
							Update code to support VS2013 tool chain.  
						
						... 
						
						
						
						Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15704  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-07-29 02:00:55 +00:00 
						 
				 
			
				
					
						
							
							
								Eric Dong 
							
						 
					 
					
						
						
							
						
						81cd2f536e 
					 
					
						
						
							
							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 
						
						
					 
					
						2014-06-26 01:38:46 +00:00 
						 
				 
			
				
					
						
							
							
								Jaben Carsey 
							
						 
					 
					
						
						
							
						
						0c41d28e59 
					 
					
						
						
							
							ShellPkg: replace unrecognized Environment Variables with empty quotes so commands or applications know something existed.  
						
						... 
						
						
						
						Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <Jaben.carsey@intel.com >
Reviewed-by: Tapan Shah <tapandshah@hp.com >
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15547  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-05-22 22:06:41 +00:00 
						 
				 
			
				
					
						
							
							
								Qiu Shumin 
							
						 
					 
					
						
						
							
						
						b5ce69c3da 
					 
					
						
						
							
							Update the comments for function 'InternalShellExecuteDevicePath' in ShellProtocol.c to make it consistent with parameter names.  
						
						... 
						
						
						
						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@15546  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-05-22 08:32:50 +00:00 
						 
				 
			
				
					
						
							
							
								Olivier Martin 
							
						 
					 
					
						
						
							
						
						cd39fe082c 
					 
					
						
						
							
							ShellPkg: Do not mix status when executing a command  
						
						... 
						
						
						
						The function InternalShellExecuteDevicePath() did not differentiate an error occuring during the preparation of an image and an error occurring during its execution.
A use case of the issue was when a EFI application was called in a EFI Shell script. If the EFI application was returning an error then the NSH script stopped its execution. While the EFI Shell specification says the script should continue its execution (see 4.2 Error Handling).
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com >
Reviewed-by: Jaben Carsey <Jaben.Carsey@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15523  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-05-13 21:16:42 +00:00 
						 
				 
			
				
					
						
							
							
								Jaben Carsey 
							
						 
					 
					
						
						
							
						
						bbf904d154 
					 
					
						
						
							
							ShellPkg: Fix using root of drive  
						
						... 
						
						
						
						This allows near complete use of drive roots “fs0:” and “fs0:\” as directories and arguments to commands.
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 >
Reviewed-by: Tapan Shah <tapandshah@hp.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15463  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-04-11 19:15:02 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Phillips 
							
						 
					 
					
						
						
							
						
						e9d19a80af 
					 
					
						
						
							
							ShellPkg: Fix command-line parsing to start with Argv[0] when comparing passed-in options  
						
						... 
						
						
						
						Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chris Phillips <chrisp@hp.com >
Reviewed-By: Olivier Martin <Olivier.Martin@arm.com >
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15432  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-04-04 13:45:36 +00:00 
						 
				 
			
				
					
						
							
							
								Jaben Carsey 
							
						 
					 
					
						
						
							
						
						d0a5723f50 
					 
					
						
						
							
							ShellPkg: Allow opening of root drive nodes  
						
						... 
						
						
						
						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@15424  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-03-31 21:06:13 +00:00 
						 
				 
			
				
					
						
							
							
								Jaben Carsey 
							
						 
					 
					
						
						
							
						
						4b5168d852 
					 
					
						
						
							
							ShellPkg: Fix potential memory leak when failing to fully create a structure  
						
						... 
						
						
						
						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@15423  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-03-31 20:43:04 +00:00 
						 
				 
			
				
					
						
							
							
								Chris Phillips 
							
						 
					 
					
						
						
							
						
						d6e88a6c60 
					 
					
						
						
							
							ShellPkg: Fix file system change issue that results in ASSERT  
						
						... 
						
						
						
						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@15406  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-03-27 18:21:43 +00:00 
						 
				 
			
				
					
						
							
							
								Shumin Qiu 
							
						 
					 
					
						
						
							
						
						4f344fffc7 
					 
					
						
						
							
							1.Add code to check the pointer  'CorrectedPath' in Ls.c line 460 before referenced. 2.Not use  explicit comparisons to TRUE or FALSE for Boolean variable in Ls.c. 3.Add doxygen tags in comment and return type for 'ToLower' in ShellProtocol.c.  
						
						... 
						
						
						
						Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Shumin Qiu <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@15320  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-03-07 01:06:37 +00:00 
						 
				 
			
				
					
						
							
							
								Shumin Qiu 
							
						 
					 
					
						
						
							
						
						f716d7b8c5 
					 
					
						
						
							
							Convert the value from 'int' to 'CHAR16' to match the type of variable in ShellProtocol.c.  
						
						... 
						
						
						
						Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Shumin Qiu <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@15271  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-02-28 00:36:03 +00:00 
						 
				 
			
				
					
						
							
							
								Brendan Jackman 
							
						 
					 
					
						
						
							
						
						b9b77ab1ba 
					 
					
						
						
							
							ShellPkg/ShellProtocol.c: Fix case sensitivity in GetAlias and SetAlias  
						
						... 
						
						
						
						ShellCommandIsOnAliasList is case insensitive, but GetAlias and SetAlias use the
UEFI variable services, which are case sensitive.
Force alias names to lowercase to get around this.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Brendan Jackman <Brendan.Jackman@arm.com >
Reviewed-By: Olivier Martin <olivier.martin@arm.com >
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15270  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-02-26 09:46:40 +00:00 
						 
				 
			
				
					
						
							
							
								Jaben Carsey 
							
						 
					 
					
						
						
							
						
						d5b5440bf2 
					 
					
						
						
							
							ShellPkg: refactor elimination of non-replaced environment variables  
						
						... 
						
						
						
						This changes how non-replaced environment variables are found and eliminated from the command line.  This new method makes sure that the found environment variables are not using escaped characters and that they do not stretch over quoted strings
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@15242  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-02-12 18:27:07 +00:00 
						 
				 
			
				
					
						
							
							
								Shumin Qiu 
							
						 
					 
					
						
						
							
						
						a7563b08d9 
					 
					
						
						
							
							Add code to check whether the pointer 'PathForReturn' in ShellProtocol.c is NULL before used.  
						
						... 
						
						
						
						Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Shumin Qiu <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@15230  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-02-12 01:51:15 +00:00 
						 
				 
			
				
					
						
							
							
								Jaben Carsey 
							
						 
					 
					
						
						
							
						
						fc4c7b30d9 
					 
					
						
						
							
							ShellPkg: Fix changing to file system with 2 colons like "fs0::"  
						
						... 
						
						
						
						first colon must be last character in the string.
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@15226  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-02-11 23:56:32 +00:00 
						 
				 
			
				
					
						
							
							
								Jaben Carsey 
							
						 
					 
					
						
						
							
						
						ba71f79058 
					 
					
						
						
							
							ShellPkg: Fix uninitialized Variable error  
						
						... 
						
						
						
						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@15225  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-02-11 23:37:18 +00:00 
						 
				 
			
				
					
						
							
							
								Brendan Jackman 
							
						 
					 
					
						
						
							
						
						fe6c94d2e1 
					 
					
						
						
							
							ShellPkg: InternalShellExecuteDevicePath: avoid memory leaks  
						
						... 
						
						
						
						Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Brendan Jackman <Brendan.Jackman@arm.com >
Reviewed-by: Olivier Martin <olivier.martin@arm.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15224  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-02-11 22:46:56 +00:00 
						 
				 
			
				
					
						
							
							
								Brendan Jackman 
							
						 
					 
					
						
						
							
						
						3e2b20a1ad 
					 
					
						
						
							
							ShellPkg: Make Argv[0] the full file path of the command  
						
						... 
						
						
						
						Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Brendan Jackman <Brendan.Jackman@arm.com >
Reviewed-by: Olivier Martin <olivier.martin@arm.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15223  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-02-11 22:45:18 +00:00 
						 
				 
			
				
					
						
							
							
								Brendan Jackman 
							
						 
					 
					
						
						
							
						
						da92bf853f 
					 
					
						
						
							
							ShellPkg: Error out when ProcessCommandLine fails  
						
						... 
						
						
						
						Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Brendan Jackman <Brendan.Jackman@arm.com >
Reviewed-by: Olivier Martin <olivier.martin@arm.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15222  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-02-11 22:43:36 +00:00 
						 
				 
			
				
					
						
							
							
								Brendan Jackman 
							
						 
					 
					
						
						
							
						
						0477054bc0 
					 
					
						
						
							
							ShellPkg: Fixed Memory leak in UefiMain()  
						
						... 
						
						
						
						Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Brendan Jackman <Brendan.Jackman@arm.com >
Reviewed-by: Olivier Martin <olivier.martin@arm.com >
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15221  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-02-11 22:42:49 +00:00 
						 
				 
			
				
					
						
							
							
								Brendan Jackman 
							
						 
					 
					
						
						
							
						
						23385d6319 
					 
					
						
						
							
							ShellPkg: Manually parse parameters  
						
						... 
						
						
						
						We can't use ShellCommandLineParse as it would error out when the shell was
called with args like "cp -r foo bar", because "-r" is not a recognised shell
option
A different way to avoid some of this manual parsing would be to prepend '^' to
each argument, but that would still require the degree of parsing necessary to work
out which words are part of the command and which are shell options.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Brendan Jackman <Brendan.Jackman@arm.com >
Reviewed-by: Olivier Martin <olivier.martin@arm.com >
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15220  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-02-11 22:39:49 +00:00 
						 
				 
			
				
					
						
							
							
								Shumin Qiu 
							
						 
					 
					
						
						
							
						
						71c49eafc5 
					 
					
						
						
							
							Add initializing code for local variable 'CalleeExitStatus' and 'ExitStatus' in 'Shell.c'.  
						
						... 
						
						
						
						Signed-off-by: Shumin Qiu <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@15191  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-01-28 00:59:46 +00:00 
						 
				 
			
				
					
						
							
							
								Shumin Qiu 
							
						 
					 
					
						
						
							
						
						7bc3ec3d80 
					 
					
						
						
							
							1. Fix several comments in function headers for 'ShellProtocol.c', 'ShellProtocol.h' and 'Ls.c'.  2. Remove the initialization of variable 'CalleeExitStatus' in function 'RunScriptFileHandle' of 'Shell.c' from its declarartion.  
						
						... 
						
						
						
						Signed-off-by: Shumin Qiu <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@15190  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-01-28 00:37:11 +00:00 
						 
				 
			
				
					
						
							
							
								Brendan Jackman 
							
						 
					 
					
						
						
							
						
						6ddc2ff3ef 
					 
					
						
						
							
							ShellPkg/ShellProtocol.c: Don't put consective "\"s in file paths  
						
						... 
						
						
						
						The UEFI and UEFI Shell specs do not allow consecutive path separators.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Brendan Jackman <Brendan.Jackman@arm.com >
Reviewed-by: Olivier Martin <olivier.martin@arm.com >
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15184  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-01-24 22:32:38 +00:00 
						 
				 
			
				
					
						
							
							
								Brendan Jackman 
							
						 
					 
					
						
						
							
						
						d9c7741d4f 
					 
					
						
						
							
							ShellPkg/ShellProtocol.c: Don't overwrite Status in InternalShellExecuteDevicePath  
						
						... 
						
						
						
						Due to the ASSERT_EFI_ERROR, this patch is necessary only to ensure specified
behaviour in RELEASE builds.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Brendan Jackman <Brendan.Jackman@arm.com >
Reviewed-by: Olivier Martin <olivier.martin@arm.com >
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15181  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-01-24 22:28:36 +00:00 
						 
				 
			
				
					
						
							
							
								Brendan Jackman 
							
						 
					 
					
						
						
							
						
						5223c12135 
					 
					
						
						
							
							ShellPkg/Shell: Fix reporting of exit status in ShellProtocol.Execute  
						
						... 
						
						
						
						When the exit status of the command run by the shell is other than
SHELL_SUCCESS, the shell image will now exit with EFI_ABORTED, placing the
commands exit status (which is a SHELL_STATUS) in ExitData.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Brendan Jackman <Brendan.Jackman@arm.com >
Reviewed-by: Olivier Martin <olivier.martin@arm.com >
Reviewed-by: Jaben Carsey <Jaben.carsey@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15180  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-01-24 22:27:11 +00:00 
						 
				 
			
				
					
						
							
							
								Shumin Qiu 
							
						 
					 
					
						
						
							
						
						f614ce7ebb 
					 
					
						
						
							
							Update the comments in function headers to follow Doxygen special documentation blocks in section 2.3.5.  
						
						... 
						
						
						
						Signed-off-by: Shumin Qiu <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@15163  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-01-23 00:27:52 +00:00 
						 
				 
			
				
					
						
							
							
								Tian, Hot 
							
						 
					 
					
						
						
							
						
						d42aab6e61 
					 
					
						
						
							
							Fix CRLF format  
						
						... 
						
						
						
						Signed-off-by: Tian, Hot <hot.tian@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15160  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-01-22 08:40:29 +00:00 
						 
				 
			
				
					
						
							
							
								Jaben Carsey 
							
						 
					 
					
						
						
							
						
						2c86b6b785 
					 
					
						
						
							
							ShellPkg: Change StdIn redirection  
						
						... 
						
						
						
						This changes how StdIn redirection works such that the file is opened and parsed for length up front and not each time.  This prevents TPL issues.
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@15140  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-01-17 17:51:09 +00:00 
						 
				 
			
				
					
						
							
							
								Jaben Carsey 
							
						 
					 
					
						
						
							
						
						4dd8c7af19 
					 
					
						
						
							
							ShellPkg: Return the failure  
						
						... 
						
						
						
						This change returns the error code when they keyboard fails to read instead of potentially spinning endlessly.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com >
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15135  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-01-16 16:53:56 +00:00 
						 
				 
			
				
					
						
							
							
								Jaben Carsey 
							
						 
					 
					
						
						
							
						
						8e4a89a335 
					 
					
						
						
							
							ShellPkg: Remove ASSERT  
						
						... 
						
						
						
						This change removes ASSERT statements and replaces them with logic to break out of the loop.  This both prevents spinning forever and prevents processing the returned data from the function that failed.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com >
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15134  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-01-16 16:53:23 +00:00 
						 
				 
			
				
					
						
							
							
								Jaben Carsey 
							
						 
					 
					
						
						
							
						
						49bb76ff71 
					 
					
						
						
							
							ShellPkg: Remove UNICODE file tag (FEFF) from files used for input redirection  
						
						... 
						
						
						
						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@15109  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-01-13 18:52:48 +00:00 
						 
				 
			
				
					
						
							
							
								Jaben Carsey 
							
						 
					 
					
						
						
							
						
						8844288c4e 
					 
					
						
						
							
							ShellPkg: assign pointer to NULL after free to prevent double free  
						
						... 
						
						
						
						Since the API caller may call twice we need to make sure that we set pointer to NULL so we can tell if already free.
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@15107  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-01-13 18:47:18 +00:00 
						 
				 
			
				
					
						
							
							
								Jaben Carsey 
							
						 
					 
					
						
						
							
						
						e958b94662 
					 
					
						
						
							
							ShellPkg: Fix command line parsing for script files (%1, %1, etc...)  
						
						... 
						
						
						
						This change makes sure that all script files get their command lines properly parsed for use in the script file.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com >
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15103  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-01-13 07:30:08 +00:00 
						 
				 
			
				
					
						
							
							
								Jaben Carsey 
							
						 
					 
					
						
						
							
						
						4922715d85 
					 
					
						
						
							
							ShellPkg: Fix NSH parsing  
						
						... 
						
						
						
						This skips lines in NSH files that are completely comments.  This reduces the memory overhead and the later processing.
This also frees memory correctly when a second memory allocation fails.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com >
Reviewed-by: Ruiyu Ni <Ruiyu.ni@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15072  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-01-09 18:02:26 +00:00 
						 
				 
			
				
					
						
							
							
								Jaben Carsey 
							
						 
					 
					
						
						
							
						
						c1f9c34621 
					 
					
						
						
							
							ShellPkg: Remove memory leak from file list usage  
						
						... 
						
						
						
						This change removes an un-used parameter that was then causing a leak since the memory was assumed to be used.
This also verifies that the list is freed when no longer needed.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com >
Reviewed-by: Ruiyu Ni <Ruiyu.ni@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15071  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-01-09 17:59:46 +00:00 
						 
				 
			
				
					
						
							
							
								Shumin Qiu 
							
						 
					 
					
						
						
							
						
						03bc7c2b09 
					 
					
						
						
							
							Add code to check whether the pointer 'NewBuffer'  in 'FileHandelWrappers.c' and the pointer 'FoundVarName' in 'Dmpstore.c' are NULL before used.  
						
						... 
						
						
						
						Signed-off-by: Shumin Qiu <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@15060  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-01-09 00:30:27 +00:00 
						 
				 
			
				
					
						
							
							
								Ruiyu Ni 
							
						 
					 
					
						
						
							
						
						31c2a2c7c0 
					 
					
						
						
							
							Enhance Shell 2.0 to not depend on keyboard driver implementation to fix the "CTRL+s" pause malfunction issue.  
						
						... 
						
						
						
						Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com >
Reviewed-by: Carsey Jaben <jaben.carsey@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15052  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-01-07 02:23:10 +00:00 
						 
				 
			
				
					
						
							
							
								Shumin Qiu 
							
						 
					 
					
						
						
							
						
						de4ebdcfcd 
					 
					
						
						
							
							Add the comment for function 'IsValidSplit' in 'Shell.c'. Add code to check whether pointer 'DataBuffer' in 'DmpStore.c' is NULL before used.  
						
						... 
						
						
						
						Signed-off-by: Shumin Qiu <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@15051  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2014-01-07 01:51:08 +00:00 
						 
				 
			
				
					
						
							
							
								Shumin Qiu 
							
						 
					 
					
						
						
							
						
						3e108dfd7d 
					 
					
						
						
							
							Set the type of variable 'StatusCode' as SHELL_STATUS to match the parameter type of function 'SetLastError'.  
						
						... 
						
						
						
						Signed-off-by: Shumin Qiu <shumin.qiu@intel.com >
Reviewed-by: Gao, Liming <liming.gao@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15031  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2013-12-31 04:01:17 +00:00 
						 
				 
			
				
					
						
							
							
								Shumin Qiu 
							
						 
					 
					
						
						
							
						
						5142926433 
					 
					
						
						
							
							Fix ECC errors:1.Update the comments in function headers to follow the Doxygen special documentation. 2.Make the first line of text in  a comment block end with a period. 3.Update the member variable name for SHELL_OPERATION_TYPES to follow the rules "Must contain lower case characters". 4. Return type of a function should exist and in the first line.  
						
						... 
						
						
						
						Signed-off-by: Shumin Qiu <shumin.qiu@intel.com >
Reviewed-by: Dong, Eric <eric.dong@intel.com >
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15019  6f19259b-4bc3-4df7-8a09-765794883524 
						
						
					 
					
						2013-12-25 00:55:33 +00:00