Count ~/ as dynamic for resolving source paths.

This commit is contained in:
Vidar Holen
2015-10-17 10:50:07 -07:00
parent 8f5f91f041
commit 630f20e888
2 changed files with 8 additions and 1 deletions

View File

@@ -147,6 +147,9 @@ prop_canSourceBadSyntax =
prop_cantSourceDynamic =
[1090] == checkWithIncludes [("lib", "")] ". \"$1\""
prop_cantSourceDynamic2 =
[1090] == checkWithIncludes [("lib", "")] "source ~/foo"
prop_canSourceDynamicWhenRedirected =
null $ checkWithIncludes [("lib", "")] "#shellcheck source=lib\n. \"$1\""