Windows, NetWare and VMS want double-quotes, other OSes want single quotes.
my $count;
my $diff_cmd = "git --no-pager diff $tag_to_compare ";
+my $q = ($^O eq 'MSWin32' || $^O eq 'NetWare' || $^O eq 'VMS') ? '"' : "'";
my (@diff);
foreach my $pm_file (sort keys %module_diffs) {
} else {
if ($tap) {
foreach (sort @{$module_diffs{$pm_file}}) {
- print "# $_" for `$diff_cmd '$_'`;
+ print "# $_" for `$diff_cmd $q$_$q`;
}
if (exists $skip_versions{$pm_file}
and grep $pm_version eq $_, @{$skip_versions{$pm_file}}) {
if ($diffs) {
for (sort @diff) {
print "\n";
- system "$diff_cmd '$_'";
+ system "$diff_cmd $q$_$q";
}
}