34 lines
		
	
	
		
			490 B
		
	
	
	
		
			Plaintext
		
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			490 B
		
	
	
	
		
			Plaintext
		
	
	
| test_expect_success 'nested-cuddled-subshell' '
 | |
| (
 | |
| # LINT: opening "(" cuddled with first nested subshell statement
 | |
| 	(cd foo &&
 | |
| 		bar
 | |
| 	) &&
 | |
| 
 | |
| # LINT: same but "&&" missing
 | |
| 	(cd foo &&
 | |
| 		bar
 | |
| 	)
 | |
| 
 | |
| # LINT: closing ")" cuddled with final nested subshell statement
 | |
| 	(
 | |
| 		cd foo &&
 | |
| 		bar) &&
 | |
| 
 | |
| # LINT: same but "&&" missing
 | |
| 	(
 | |
| 		cd foo &&
 | |
| 		bar)
 | |
| 
 | |
| # LINT: "(" and ")" cuddled with first and final subshell statements
 | |
| 	(cd foo &&
 | |
| 		bar) &&
 | |
| 
 | |
| # LINT: same but "&&" missing
 | |
| 	(cd foo &&
 | |
| 		bar)
 | |
| 
 | |
| 	foobar
 | |
| )
 | |
| '
 |