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