mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2195 (markdown)
@@ -3,7 +3,7 @@
|
||||
### Problematic code:
|
||||
|
||||
```sh
|
||||
case "$var " of # Trailing space
|
||||
case "$var " in # Trailing space
|
||||
value) echo "Match"
|
||||
esac
|
||||
```
|
||||
@@ -11,7 +11,7 @@ esac
|
||||
### Correct code:
|
||||
|
||||
```sh
|
||||
case "${var}" of # No trailing space
|
||||
case "${var}" in # No trailing space
|
||||
value) echo "Match"
|
||||
esac
|
||||
```
|
||||
|
Reference in New Issue
Block a user