mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-07-29 11:59:36 +02:00
quotemeta
This commit is contained in:
+2
-1
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user