mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2097 (markdown)
@@ -33,3 +33,8 @@ The solution is to set the variable and export the variable first. If limited sc
|
||||
### Exceptions
|
||||
|
||||
In the strange and fabricated scenarios where the script and a program uses a variable name for two different purposes, you can ignore this message. This is hard to conceive, since scripts should use lowercase variable names specifically to avoid collisions with the environment.
|
||||
|
||||
### Related resources:
|
||||
|
||||
* [BashFaq: Why doesn't foo=bar echo "$foo" print bar?](https://mywiki.wooledge.org/BashFAQ/104)
|
||||
* [StackOverflow: Prefixing variable assignment doesn't work with echo](https://stackoverflow.com/questions/36380569/prefixing-variable-assignment-doesnt-work-with-echo?rq=1)
|
Reference in New Issue
Block a user