Add support for Bash 5.3 source -p .. file (just ignores the path)

This commit is contained in:
Vidar Holen
2025-07-17 12:27:43 -07:00
parent 23097320a4
commit 0c26fb405d
2 changed files with 19 additions and 13 deletions

View File

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