cvs commit: fptools/ghc/driver/split ghc-split.lprl
Ian Lynagh
igloo at earth.li
Wed Sep 1 08:54:17 EDT 2004
On Wed, Sep 01, 2004 at 03:01:53AM -0700, Simon Marlow wrote:
> simonmar 2004/09/01 03:01:53 PDT
>
> Modified files:
> ghc/driver/split ghc-split.lprl
> Log:
> Apply the fix from
>
> [ 1015205 ] ghc-split fails to quote path when used as regex
>
> namely escape backslashes in the pathname $Tmp_prefix before using it
> as a regex. The fix doesn't look like it solves the general case, but
> it'll do for now.
I think this should work (untested):
$prologue_stuff =~ s/\Q"$Tmp_prefix.c"/"$ifile_root.hc"/g;
\Q turns off metachars, \E will turn them back on again.
Thanks
Ian
More information about the Cvs-ghc
mailing list