repo.or.cz
/
alt-git.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
reftable/record: avoid copying author info
[alt-git.git]
/
t
/
chainlint
/
while-loop.test
blob
d09fb016e4405c5d9f7378b2ee5b9a634c4a9dc2
1
(
2
# LINT: "while", "do", "done" do not need "&&"
3
while true
4
do
5
# LINT: missing "&&" on "echo"
6
echo foo
7
# LINT: last statement of while does not need "&&"
8
cat <<-\EOF
9
bar
10
EOF
11
# LINT: missing "&&" on "done"
12
done
13
14
# LINT: "do" on same line as "while"
15
while true; do
16
echo foo &&
17
cat bar
18
done
19
)