mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-19 21:03:51 -07:00
Merge pull request #1876 from fork-graveyard/master
recognize `: ${parameter=word}` as assignment
This commit is contained in:
commit
da0931740f
2 changed files with 2 additions and 1 deletions
|
@ -2204,6 +2204,7 @@ prop_checkUnassignedReferences36= verifyNotTree checkUnassignedReferences "read
|
|||
prop_checkUnassignedReferences37= verifyNotTree checkUnassignedReferences "var=howdy; printf -v 'array[0]' %s \"$var\"; printf %s \"${array[0]}\";"
|
||||
prop_checkUnassignedReferences38= verifyTree (checkUnassignedReferences' True) "echo $VAR"
|
||||
prop_checkUnassignedReferences39= verifyNotTree checkUnassignedReferences "builtin export var=4; echo $var"
|
||||
prop_checkUnassignedReferences40= verifyNotTree checkUnassignedReferences ": ${foo=bar}"
|
||||
|
||||
checkUnassignedReferences = checkUnassignedReferences' False
|
||||
checkUnassignedReferences' includeGlobals params t = warnings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue