From 1697a81bafcc9a65012b62ba01c1661bf40e5edb Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 3 May 2016 23:58:38 +0200 Subject: [PATCH] Allow spaces in filenames when using perl's glob Reviewed-by: Matt Caswell --- util/copy-if-different.pl | 2 +- util/copy.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/util/copy-if-different.pl b/util/copy-if-different.pl index 63a9a05f31..2bf7835827 100755 --- a/util/copy-if-different.pl +++ b/util/copy-if-different.pl @@ -18,7 +18,7 @@ my @filelist; foreach my $arg (@ARGV) { $arg =~ s|\\|/|g; # compensate for bug/feature in cygwin glob... - foreach (glob $arg) + foreach (glob qq("$arg")) { push @filelist, $_; } diff --git a/util/copy.pl b/util/copy.pl index c4bcccdee6..ef4d8708e2 100644 --- a/util/copy.pl +++ b/util/copy.pl @@ -26,7 +26,7 @@ foreach $arg (@ARGV) { next; } $arg =~ s|\\|/|g; # compensate for bug/feature in cygwin glob... - foreach (glob $arg) + foreach (glob qq("$arg")) { push @filelist, $_; } -- 2.34.1