mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
A first simple proposal
13
SC2019.md
Normal file
13
SC2019.md
Normal file
@@ -0,0 +1,13 @@
|
||||
## Use '[:upper:]' to support accents and foreign alphabets.
|
||||
|
||||
### Problematic code:
|
||||
|
||||
```sh
|
||||
PLATFORM="$(uname -s | tr 'A-Z')"
|
||||
```
|
||||
|
||||
### Correct code:
|
||||
|
||||
```sh
|
||||
PLATFORM="$(uname -s | tr '[:upper:]')"
|
||||
```
|
Reference in New Issue
Block a user