about summary refs log blame commit diff
path: root/t/chainlint/if-in-loop.test
blob: daf22da16476aac9e7467bf73cae8470fe29e98f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                  
(
	for i in a b c
	do
		if false
		then
# LINT: missing "&&" on 'echo'
			echo "err"
			exit 1
# LINT: missing "&&" on 'fi'
		fi
		foo
# LINT: missing "&&" on 'done'
	done
	bar
)