projects
/
p5sagit/local-lib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
quotemeta the path to avoid "Unrecognized escape \s passed through" on win32
[p5sagit/local-lib.git]
/
t
/
taint-mode.t
diff --git
a/t/taint-mode.t
b/t/taint-mode.t
index
94392cf
..
cc7233c
100644
(file)
--- a/
t/taint-mode.t
+++ b/
t/taint-mode.t
@@
-27,7
+27,7
@@
print $fh <<EOM;
use strict; use warnings;
use local::lib '$dir1';
my \$dir1 = "$dir1";
-if (grep { \$_ =~ m{^\$dir1/} } \@INC) {
+if (grep { m{^\\Q\$dir1\\E/} } \@INC) {
exit 0;
}
exit 1