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

_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to