mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Link mention of SC1034
to its wiki page
@@ -1,6 +1,6 @@
|
|||||||
## Test expression was opened with double `[[` but closed with single `]`. Make sure they match.
|
## Test expression was opened with double `[[` but closed with single `]`. Make sure they match.
|
||||||
|
|
||||||
(or SC1034 for vice versa)
|
(or [[SC1034]] for vice versa)
|
||||||
|
|
||||||
### Problematic code:
|
### Problematic code:
|
||||||
|
|
||||||
@@ -13,6 +13,7 @@
|
|||||||
```sh
|
```sh
|
||||||
[[ -z "$var" ]]
|
[[ -z "$var" ]]
|
||||||
```
|
```
|
||||||
|
|
||||||
### Rationale:
|
### Rationale:
|
||||||
|
|
||||||
ShellCheck found a test expression `[ ... ]` (POSIX) or `[[ ... ]]` (ksh/bash), but where the opening and closing brackets did not match (i.e. `[[ .. ]` or `[ .. ]]`). The brackets need to match up to work.
|
ShellCheck found a test expression `[ ... ]` (POSIX) or `[[ ... ]]` (ksh/bash), but where the opening and closing brackets did not match (i.e. `[[ .. ]` or `[ .. ]]`). The brackets need to match up to work.
|
||||||
|
Reference in New Issue
Block a user