mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC1035 (markdown)
@@ -2,11 +2,14 @@
|
|||||||
|
|
||||||
### Problematic code:
|
### Problematic code:
|
||||||
|
|
||||||
|
```sh
|
||||||
if ![-z foo ]; then true; fi
|
if ![-z foo ]; then true; fi
|
||||||
|
```
|
||||||
### Correct code:
|
### Correct code:
|
||||||
|
|
||||||
|
```sh
|
||||||
if ! [ -z foo ]; then true; fi
|
if ! [ -z foo ]; then true; fi
|
||||||
|
```
|
||||||
|
|
||||||
### Rationale:
|
### Rationale:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user