From 03ff1b96cdd24cdd353bfe404f6f86f3cbcea13e Mon Sep 17 00:00:00 2001 From: koalaman Date: Sat, 15 Apr 2017 10:50:24 -0700 Subject: [PATCH] Updated SC2209 (markdown) --- SC2209.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SC2209.md b/SC2209.md index 5739a52..d958bf7 100644 --- a/SC2209.md +++ b/SC2209.md @@ -24,4 +24,8 @@ If you do want to assign a literal string, use quotes to make this clear to shel ### Exceptions: -None. \ No newline at end of file +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*`. \ No newline at end of file