shellharden 4.3.0

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

test -z `test -z $1`
test -z "$(test -z "$1")"
[ -z `[ -z $1 ]` ]
[ -z "$([ -z "$1" ])" ]

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

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