summaryrefslogtreecommitdiff
path: root/pkgtools/check-portability/files/test-double-brackets.sh
blob: 280b3762cf0dbde158df86c033da342e66555fdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/sh
#
# This file demonstrates which patterns are detected by the check for
# the double square bracket command.
#
# In comments, [[ is allowed ]] since it is not interpreted.

if [[ test ]]; then

[[ test ]]

[[ test ]] || echo

[[

]]

[[:space:]];