Don't warn about .sh.version being unused (for Ksh)

This commit is contained in:
Vidar Holen 2016-12-17 16:03:06 -08:00
parent f594f01d35
commit 7124c113e8
2 changed files with 4 additions and 0 deletions

View file

@ -1834,6 +1834,7 @@ prop_checkUnassignedReferences24= verifyNotTree checkUnassignedReferences "decla
prop_checkUnassignedReferences25= verifyNotTree checkUnassignedReferences "declare -A foo=(); foo[bar]=42;"
prop_checkUnassignedReferences26= verifyNotTree checkUnassignedReferences "a::b() { foo; }; readonly -f a::b"
prop_checkUnassignedReferences27= verifyNotTree checkUnassignedReferences ": ${foo:=bar}"
prop_checkUnassignedReferences28= verifyNotTree checkUnassignedReferences "#!/bin/ksh\necho \"${.sh.version}\"\n"
checkUnassignedReferences params t = warnings
where
(readMap, writeMap) = execState (mapM tally $ variableFlow params) (Map.empty, Map.empty)