mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC1098 (markdown)
@@ -17,7 +17,7 @@ Shells differ widely in how they handle unescaped parentheses in `eval` expressi
|
||||
* `eval $var=(bar)` is allowed by ksh, but not bash or dash.
|
||||
* `eval foo() ( echo bar; )` is not allowed by any shell.
|
||||
|
||||
Since the expression is evaluated as shell script code anyways, it should be passed in as a literal string without relying on special case parsing rules in the target shell. Quote or escape the characters appropriately.
|
||||
Since the expression is evaluated as shell script code anyways, it should be passed in as a literal string without relying on special case parsing rules in the target shell. Quote/escape the characters accordingly.
|
||||
|
||||
### Exceptions:
|
||||
|
||||
|
Reference in New Issue
Block a user