mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-14 00:53:15 -07:00
Allow using 'source -- file' (fixes #1518)
This commit is contained in:
parent
b456987b84
commit
c53c8a5ead
2 changed files with 12 additions and 1 deletions
|
@ -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\""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue