shells: fix var_LINENO1.tests false positive, add it to ash tests too
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
		
							
								
								
									
										8
									
								
								shell/ash_test/ash-vars/var_LINENO1.right
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								shell/ash_test/ash-vars/var_LINENO1.right
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
2:2
 | 
			
		||||
3:3
 | 
			
		||||
4:4
 | 
			
		||||
5:5
 | 
			
		||||
2:2
 | 
			
		||||
3:3
 | 
			
		||||
4:4
 | 
			
		||||
5:5
 | 
			
		||||
							
								
								
									
										6
									
								
								shell/ash_test/ash-vars/var_LINENO1.tests
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										6
									
								
								shell/ash_test/ash-vars/var_LINENO1.tests
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
env | grep ^LINENO
 | 
			
		||||
echo 2:$LINENO
 | 
			
		||||
echo 3:$LINENO >&2 \
 | 
			
		||||
| { sleep 0.1; echo 4:$LINENO; }
 | 
			
		||||
echo 5:$LINENO
 | 
			
		||||
test "$1" || . ./var_LINENO1.tests norepeat
 | 
			
		||||
		Reference in New Issue
	
	Block a user