shellharden 4.3.1

The corrective bash syntax highlighter
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

test "$(test "$1" = "")" = ""
test "$(test "$1" = "")" = ""
[ "$([ "$1" = "" ])" = "" ]
[ "$([ "$1" = "" ])" = "" ]

# NB: Unquoted `test -n` is always true.
test "$(test "$1" != "")" != ""
test "$(test "$1" != "")" != ""
[ "$([ "$1" != "" ])" != "" ]
[ "$([ "$1" != "" ])" != "" ]

# xyes
test "$([ "$a$b" = "" ])$b" = yes
test "$([ "$a$b" != "" ])$b" != ''
test "$([ "$a$b" == "" ])$b" == ""
test x"$([ x"$a$b" == "" ])$b" == ex