blob: 33a201906a8e8c57ca3a4cbc6979fc56c644c3c3 [file] [log] [blame]
test_expect_success 'while-loop' '
(
# LINT: "while", "do", "done" do not need "&&"
while true
do
# LINT: missing "&&" on "echo"
echo foo
# LINT: last statement of while does not need "&&"
cat <<-\EOF
bar
EOF
# LINT: missing "&&" on "done"
done
# LINT: "do" on same line as "while"
while true; do
echo foo &&
cat bar
done
)
'