]> git.vpit.fr Git - perl/modules/Sub-Op.git/commitdiff
Fix passing shell quoted arguments to Sub::Op::LexicalSub Makefile.PL
authorVincent Pit <vince@profvince.com>
Mon, 4 Jan 2010 11:39:40 +0000 (12:39 +0100)
committerVincent Pit <vince@profvince.com>
Mon, 4 Jan 2010 11:39:40 +0000 (12:39 +0100)
Makefile.PL

index a7e84dbdec4fd9d2e4c0d1adda9439ccb7814d3f..539884e6d8a1dafb2072d9821ff468491f21d18c 100644 (file)
@@ -80,6 +80,7 @@ WriteMakefile(
  open my $fh, '>', $args_dat or die "open(>$args_dat): $!";
  for (@ARGV) {
   my $arg = $_;
+  $arg =~ s{\s*(['"])\s*(.*)\s*\1\s*$}{$2}s;
   $arg =~ s{([^=/.a-zA-Z0-9-])}{sprintf "[%d]", ord $1}ge;
   print $fh "$arg\n";
  }