mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-08-26 10:05:09 +08:00
Add support for Bash 5.3 source -p .. file
(just ignores the path)
This commit is contained in:
@@ -221,6 +221,9 @@ prop_worksWhenSourcing =
|
||||
prop_worksWhenSourcingWithDashDash =
|
||||
null $ checkWithIncludes [("lib", "bar=1")] "source -- lib; echo \"$bar\""
|
||||
|
||||
prop_worksWhenSourcingWithDashP =
|
||||
null $ checkWithIncludes [("lib", "bar=1")] "source -p \"$MYPATH\" lib; echo \"$bar\""
|
||||
|
||||
prop_worksWhenDotting =
|
||||
null $ checkWithIncludes [("lib", "bar=1")] ". lib; echo \"$bar\""
|
||||
|
||||
|
Reference in New Issue
Block a user