mirror of
https://github.com/drwetter/testssl.sh.git
synced 2026-09-14 05:38:16 +02:00
'$' should be passed to the shell not '\$'
... thus not double quoting like \\$
This commit is contained in:
+2
-2
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user