sed: fix very obscure case of escaped newline in sed command
(needed for uclibc build, btw). Add testcase for it.
This commit is contained in:
		@@ -146,6 +146,10 @@ rm outputw
 | 
			
		||||
testing "sed trailing NUL" \
 | 
			
		||||
	"sed 's/i/z/' input -" \
 | 
			
		||||
	"a\0b\0\nc" "a\0b\0" "c"
 | 
			
		||||
testing "sed escaped newline in command" \
 | 
			
		||||
	"sed 's/a/z\\
 | 
			
		||||
z/' input" \
 | 
			
		||||
	"z\nz" "a" ""
 | 
			
		||||
 | 
			
		||||
# Test end-of-file matching behavior
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user