cvs commit: hugs98/libraries Prelude.hs hugs98/src hugs.c input.c prelude.h hugs98/src/unix convert_libraries

Ross Paterson ross@soi.city.ac.uk
Mon, 9 Sep 2002 14:53:55 +0100


On Sun, Sep 08, 2002 at 08:48:20PM -0700, Sigbjorn Finne wrote:
> sof         2002/09/08 20:48:20 PDT
> 
>   Modified files:
>     libraries            Prelude.hs 
>     src                  hugs.c input.c prelude.h 
>     src/unix             convert_libraries 
>   Log:
>   PrelImpl -> Hugs.Prelude

In this line in hugs.c:

    if ( ( prelLocation = findMPathname(NULL, STD_PRELUDE_IMPL, hugsPath)) ) {

STD_PRELUDE_IMPL is a string literal containing a dot.  find1() attempts
to change the dot into a slash and back, which is illegal, and punished
on my machine.  Arguably a bug in find1(), not triggered elsewhere.