For multi-line $(...) expressions nested within subshells, chainlint.sed
only recognizes:
    x=$(
        echo foo &&
        ...
but it is not unlikely that test authors may also cuddle the command
with the opening "$(", so support that style, as well:
    x=$(echo foo &&
        ...
The closing ")" is already correctly recognized when cuddled or not.
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			139 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			139 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
(
 | 
						|
	foo &&
 | 
						|
	x=$(
 | 
						|
		echo bar |
 | 
						|
		cat
 | 
						|
	) &&
 | 
						|
	echo ok
 | 
						|
) |
 | 
						|
sort &&
 | 
						|
(
 | 
						|
	bar &&
 | 
						|
	x=$(echo bar |
 | 
						|
		cat
 | 
						|
	) &&
 | 
						|
	y=$(echo baz |
 | 
						|
		fip) &&
 | 
						|
	echo fail
 | 
						|
)
 |