hush: fix ". EMPTY_LINE" not setting $? to 0
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
		
							
								
								
									
										2
									
								
								shell/hush_test/hush-misc/source3.right
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								shell/hush_test/hush-misc/source3.right
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
			
		||||
Zero:0
 | 
			
		||||
Zero:0
 | 
			
		||||
							
								
								
									
										6
									
								
								shell/hush_test/hush-misc/source3.tests
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										6
									
								
								shell/hush_test/hush-misc/source3.tests
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
# Test both empty file, and one-empty-line file
 | 
			
		||||
echo >sourced1
 | 
			
		||||
true >sourced2
 | 
			
		||||
false; . ./sourced1; echo Zero:$?
 | 
			
		||||
false; . ./sourced2; echo Zero:$?
 | 
			
		||||
rm sourced1 sourced2
 | 
			
		||||
		Reference in New Issue
	
	Block a user