mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC1083 (markdown)
@@ -22,6 +22,8 @@ and
|
||||
|
||||
```sh
|
||||
eval "echo \${foo}"
|
||||
```
|
||||
|
||||
### Rationale:
|
||||
|
||||
Curly brackets are normally used as syntax in parameter expansion, command grouping and brace expansion.
|
||||
@@ -36,5 +38,4 @@ ShellCheck does not warn about `{}`, since this is frequently used with `find` a
|
||||
|
||||
### Exceptions
|
||||
|
||||
This error is harmless when the curly brackets are supposed to be literal, in e.g. `awk {'print $1'}`. However, it's cleaner and less error prone to simply include them inside the quotes: `awk '{print $1}'`.
|
||||
```
|
||||
This error is harmless when the curly brackets are supposed to be literal, in e.g. `awk {'print $1'}`. However, it's cleaner and less error prone to simply include them inside the quotes: `awk '{print $1}'`.
|
Reference in New Issue
Block a user