Revision ec583449067bab5b800ecc63926f35c9dae96fa1 authored by Johannes Schindelin on 11 March 2023, 20:29:12 UTC, committed by Johannes Schindelin on 17 April 2023, 19:16:07 UTC
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent c96ecfe
Raw File
for-loop.test
(
# LINT: "for", "do", "done" do not need "&&"
	for i in a b c
	do
# LINT: missing "&&" on "echo"
		echo $i
# LINT: last statement of while does not need "&&"
		cat <<-\EOF
		bar
		EOF
# LINT: missing "&&" on "done"
	done

# LINT: "do" on same line as "for"
	for i in a b c; do
		echo $i &&
		cat $i
	done
)
back to top