mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2209 (markdown)
@@ -24,4 +24,8 @@ If you do want to assign a literal string, use quotes to make this clear to shel
|
||||
|
||||
### Exceptions:
|
||||
|
||||
None.
|
||||
None.
|
||||
|
||||
Quoting a single command (as in `PAGER="cat"` above) doesn't change how the script works. It's purely to show shellcheck (and humans) that a literal assignment of a command name is intentional.
|
||||
|
||||
This warning triggers generally when a variable is assigned an unquoted command name (from a list of hard coded names). See related warning [[SC2037]] which detects the same kind of error through the patterns `var=value -flag` and `var=value *glob*`.
|
Reference in New Issue
Block a user