mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2065 (markdown)
@@ -3,13 +3,13 @@
|
|||||||
### Problematic code:
|
### Problematic code:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
[ 3>2 ] || [ 3>'aaa bb' ] # Simple example of problematic code
|
[ 1 >2 ] || [ 3>'aaa bb' ] # Simple example of problematic code
|
||||||
```
|
```
|
||||||
|
|
||||||
### Correct code:
|
### Correct code:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
[ 3 -gt 2 ] || [ 3 > 'aaa bb' ] # arithmetical, lexicographical
|
[ 1 -gt 2 ] || [ 3 > 'aaa bb' ] # arithmetical, lexicographical
|
||||||
```
|
```
|
||||||
### Rationale:
|
### Rationale:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user