Allow using 'source -- file' (fixes #1518)

This commit is contained in:
Vidar Holen 2019-03-17 19:37:35 -07:00
parent b456987b84
commit c53c8a5ead
2 changed files with 12 additions and 1 deletions

View file

@ -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\""