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
|
```sh
|
||||||
eval "echo \${foo}"
|
eval "echo \${foo}"
|
||||||
|
```
|
||||||
|
|
||||||
### Rationale:
|
### Rationale:
|
||||||
|
|
||||||
Curly brackets are normally used as syntax in parameter expansion, command grouping and brace expansion.
|
Curly brackets are normally used as syntax in parameter expansion, command grouping and brace expansion.
|
||||||
@@ -37,4 +39,3 @@ ShellCheck does not warn about `{}`, since this is frequently used with `find` a
|
|||||||
### Exceptions
|
### 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