Updated SC2155 (markdown)

koalaman
2015-03-08 14:15:12 -07:00
parent b83ad93071
commit 6a3b52a497

@@ -21,3 +21,5 @@ If you intend to ignore the return value of an assignment, you can either ignore
export foo
foo=$(mycmd) || true
Shellcheck does not warn about `export foo=bar` because `bar` is a literal and not a command substitution with an independent return value. It also does not warn about `local -r foo=$(cmd)`, where declaration and assignment must be in the same command.