mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-01-04 01:59:56 -08:00
Updated SC2154 (markdown)
parent
a4fead1465
commit
ab4da268c1
@ -50,6 +50,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 "$(date +%F).sh"` or `eval var=value`.
|
||||
ShellCheck intentionally does not attempt to figure out runtime or dynamic assignments like with `source "$(date +%F).sh"` or `eval var=value`. See [[SC2034]] for an extended discussion of why this is the case.
|
||||
|
||||
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]].
|
||||
|
Loading…
Reference in New Issue
Block a user