From 3775f875834d8918b4c63532d3b1aa823955f679 Mon Sep 17 00:00:00 2001 From: koalaman Date: Wed, 19 Aug 2015 10:50:37 -0700 Subject: [PATCH] Updated SC2154 (markdown) --- SC2154.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SC2154.md b/SC2154.md index 2b626f9..938f888 100644 --- a/SC2154.md +++ b/SC2154.md @@ -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]]. \ No newline at end of file