mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2019 (markdown)
12
SC2019.md
12
SC2019.md
@@ -1,13 +1,3 @@
|
|||||||
## Use '[:upper:]' to support accents and foreign alphabets.
|
## Use '[:upper:]' to support accents and foreign alphabets.
|
||||||
|
|
||||||
### Problematic code:
|
See the equivalent warning for lowercase matching: [[SC2018]]
|
||||||
|
|
||||||
```sh
|
|
||||||
PLATFORM="$(uname -s | tr 'A-Z')"
|
|
||||||
```
|
|
||||||
|
|
||||||
### Correct code:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
PLATFORM="$(uname -s | tr '[:upper:]')"
|
|
||||||
```
|
|
Reference in New Issue
Block a user