repo.or.cz
/
git.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
The twelfth batch
[git.git]
/
t
/
chainlint
/
block.test
blob
a1b6b4dd329311055eb672e630adb457421dc084
1
test_expect_success 'block' '
2
(
3
# LINT: missing "&&" after first "echo"
4
foo &&
5
{
6
echo a
7
echo b
8
} &&
9
bar &&
10
# LINT: missing "&&" at closing "}"
11
{
12
echo c
13
}
14
baz
15
) &&
16
17
# LINT: ";" not allowed in place of "&&"
18
{
19
echo a; echo b
20
} &&
21
{ echo a; echo b; } &&
22
23
# LINT: "}" inside string not mistaken as end of block
24
{
25
echo "${var}9" &&
26
echo "done"
27
} &&
28
finis
29
'