From 8eb05bd8627e2d9117d24d66110d5373eb77cac2 Mon Sep 17 00:00:00 2001 From: Dirk Date: Tue, 1 Sep 2026 16:58:14 +0200 Subject: [PATCH] '$' should be passed to the shell not '\$' ... thus not double quoting like \\$ --- t/03_syntax_check.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/03_syntax_check.t b/t/03_syntax_check.t index 0d9fc1f..46872b4 100755 --- a/t/03_syntax_check.t +++ b/t/03_syntax_check.t @@ -36,7 +36,7 @@ $tests++; #3 printf "\n%s\n", "Sourcing without checking the file exists #1 ..."; -@matches = qx(grep -nP '^\\s*\\.\\s+\\$' $prg); +@matches = qx(grep -nP '^\\s*\\.\\s+\$' $prg); is(scalar(@matches), 0, "Checking bad sourcing pattern #1") or diag(@matches); $tests++; @@ -44,7 +44,7 @@ $tests++; #4 printf "\n%s\n", "Sourcing without checking the file exists #2 ..."; -@matches = qx(grep -nP '^\\s*source\\s+\\$' $prg); +@matches = qx(grep -nP '^\\s*source\\s+\$' $prg); is(scalar(@matches), 0, "Checking bad sourcing pattern #2") or diag(@matches); $tests++;