Updated SC2154 (markdown)

koalaman
2015-08-19 10:50:37 -07:00
parent eb3b50bf11
commit 3775f87583

@@ -38,6 +38,6 @@ Note: This message only triggers for variables with lowercase characters in thei
### Exceptions:
ShellCheck does not attempt to figure out runtime or dynamic assignments like with `source mycommonvars.sh` or `eval var=value`.
ShellCheck does not attempt to figure out runtime or dynamic assignments like with `source "$(date +%F).sh"` or `eval var=value`.
If you know for a fact that the variable is set, you can use `${var:?}` to fail if the variable is unset (or empty), or explicitly initialize/declare it with `var=""` or `declare var`. You can also disable the message with a [[directive]].