pkgsrc/pkgtools/check-portability/files/testdata/double-brackets
rillig 509ef148b0 pkgtools/check-portability: update to 19.4.1
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.
2020-03-12 08:42:34 +00:00

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:]];