509ef148b0
Changes since 19.4.0: * Makefile.am and Makefile.in are checked even though they don't start with a #! line. * Only shell programs with an interpreter that is clearly a POSIX shell are checked. Before, there was a blacklist of interpreters to be skipped. * Lots of refactorings and code cleanups. * Some additional test files.
18 lines
258 B
Bash
18 lines
258 B
Bash
#! /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:]];
|