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