aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/bash/test.sh
blob: 7e708a93deb53710bcdbc538c48e60771e6d5dc4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
for i in 1 2 3; do
    if [[ true ]]; then
        echo "asd"
    elif [ true ]; then
        echo "dsa"
    else
        echo ""
    fi
    echo $i
done

while true; do
    break
done

case $foo in
    a) echo a ;;
    b) echo b ;;
esac

function x() {
    echo x
}

y() {
    echo y
}

{
    echo z
}

(
    echo subshell
)

A=$(
    echo command substitution
)