X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=x2p%2Ffind2perl.PL;h=94cf2423064edfb00099f174b3c66b52af64a8cb;hb=b2c64049f4c2cbaedee1ae9b13dab8adb5b210b3;hp=614f0a2bc8a85781a43e8117ebfa1cfb81b96231;hpb=572330a4eb55713df78f333836638678b76bd922;p=p5sagit%2Fp5-mst-13.2.git diff --git a/x2p/find2perl.PL b/x2p/find2perl.PL index 614f0a2..94cf242 100644 --- a/x2p/find2perl.PL +++ b/x2p/find2perl.PL @@ -191,7 +191,7 @@ while (@ARGV) { $out .= tab; for (@cmd) { s/'/\\'/g } - { local $" = "','"; $out .= "doexec(0, '@cmd')"; } + { local $" = "','"; $out .= "doexec(1, '@cmd')"; } $declaresubs .= "sub doexec (\$\@);\n"; $init{doexec} = 1; } elsif ($_ eq 'prune') { @@ -674,7 +674,7 @@ sub tab () { sub fileglob_to_re ($) { my $x = shift; - $x =~ s#([./^\$()])#\\$1#g; + $x =~ s#([./^\$()+])#\\$1#g; $x =~ s#([?*])#.$1#g; "^$x\\z"; } @@ -841,7 +841,7 @@ Like -print, but terminates with \0 instead of \n. =item C<-exec OPTIONS ;> -exec() the arguments in OPTIONS in a subprocess; any occurence of {} in +exec() the arguments in OPTIONS in a subprocess; any occurrence of {} in OPTIONS will first be substituted with the path of the current file. Note that the command "rm" has been special-cased to use perl's unlink() function instead (as an optimization). The C<;> must be passed as