mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-09 11:49:32 +08:00
Allow using 'source -- file' (fixes #1518)
This commit is contained in:
@@ -204,6 +204,9 @@ prop_failsWhenNotSourcing =
|
||||
prop_worksWhenSourcing =
|
||||
null $ checkWithIncludes [("lib", "bar=1")] "source lib; echo \"$bar\""
|
||||
|
||||
prop_worksWhenSourcingWithDashDash =
|
||||
null $ checkWithIncludes [("lib", "bar=1")] "source -- lib; echo \"$bar\""
|
||||
|
||||
prop_worksWhenDotting =
|
||||
null $ checkWithIncludes [("lib", "bar=1")] ". lib; echo \"$bar\""
|
||||
|
||||
|
Reference in New Issue
Block a user