repo.or.cz
/
git
/
raj.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
dir: fix treatment of negated pathspecs
[git/raj.git]
/
t
/
chainlint
/
for-loop.test
blob
7db76262bc2e0089ea97581417b7ca95b2c9c2b4
1
(
2
# LINT: 'for', 'do', 'done' do not need "&&"
3
for i in a b c
4
do
5
# LINT: missing "&&" on 'echo'
6
echo $i
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 'for'
15
for i in a b c; do
16
echo $i &&
17
cat $i
18
done
19
)