ash,hush: handle a few more bkslash-newline cases
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
		
							
								
								
									
										4
									
								
								shell/ash_test/ash-parsing/bkslash_newline1.right
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								shell/ash_test/ash-parsing/bkslash_newline1.right
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
and1
 | 
			
		||||
and2
 | 
			
		||||
or1
 | 
			
		||||
ok
 | 
			
		||||
							
								
								
									
										8
									
								
								shell/ash_test/ash-parsing/bkslash_newline1.tests
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										8
									
								
								shell/ash_test/ash-parsing/bkslash_newline1.tests
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
echo and1 &\
 | 
			
		||||
& echo and2
 | 
			
		||||
 | 
			
		||||
echo or1 |\
 | 
			
		||||
| echo NOT SHOWN
 | 
			
		||||
 | 
			
		||||
case w in a) echo SKIP;\
 | 
			
		||||
; w) echo ok;; esac;
 | 
			
		||||
							
								
								
									
										4
									
								
								shell/ash_test/ash-parsing/bkslash_newline2.right
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								shell/ash_test/ash-parsing/bkslash_newline2.right
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
Line with one backslash:
 | 
			
		||||
\
 | 
			
		||||
 | 
			
		||||
Ok:0
 | 
			
		||||
							
								
								
									
										4
									
								
								shell/ash_test/ash-parsing/bkslash_newline2.tests
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										4
									
								
								shell/ash_test/ash-parsing/bkslash_newline2.tests
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
echo Line with one backslash:
 | 
			
		||||
echo '\
 | 
			
		||||
'
 | 
			
		||||
echo Ok:$?
 | 
			
		||||
		Reference in New Issue
	
	Block a user