From e724268ea5cd3679bac06291f46dfbd26b115072 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 19 Jul 2002 22:01:43 +0000 Subject: quotemeta --- tests/rm/fail-eperm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/rm/fail-eperm b/tests/rm/fail-eperm index 7fa9c96f7..fd9c7e157 100755 --- a/tests/rm/fail-eperm +++ b/tests/rm/fail-eperm @@ -75,7 +75,8 @@ foreach my $dir (@dir_list) . " got $status, expected 1\n"; my $exp = "rm: cannot remove `$dir/$f':"; - $line =~ /^$exp/ + my $regex = quotemeta $exp; + $line =~ /^$regex/ or die "$ME: unexpected dignostic from `$cmd';\n" . " got $line" . " expected $exp ...\n"; -- cgit v1.2.3-70-g09d2