I didn't reply to the list like I had intended to.  (Thunderbird 3 is
different enough from 2 that I'm not yet adjusted.)

Ray


-------- Original Message --------
Subject:        Re: [cmucl-help] TRANSLATE-PATHNAME Bug?
Date:   Fri, 29 Jan 2010 12:57:34 -0500
From:   Raymond Toy <[email protected]>
To:     Marco Antoniotti <[email protected]>



On 1/29/10 11:55 AM, Marco Antoniotti wrote:
> Hello
>
> I think this is a bug (although it is 19D)
>
>
> * (translate-pathname "/Users/marcoxa/Projects/Lang/CL/HELAMBDAP/ 
> helambdap-pkg.lisp"
>                        "/Users/marcoxa/Projects/Lang/CL/**/*"
>                        "**/*")
>
> #P"/HELAMBDAP/helambdap-pkg.lisp"
> * (describe *)
>
> #P"/HELAMBDAP/helambdap-pkg.lisp" is a structure of type PATHNAME.
> HOST: #<LISP::UNIX-HOST>.
> DEVICE: NIL.
> DIRECTORY: (:ABSOLUTE "HELAMBDAP").
> NAME: "helambdap-pkg".
> TYPE: "lisp".
> VERSION: NIL.
> *
>
> I think the result should be a :RELATIVE pathname.
>
> Is it still like this in the current version?
>
>   
Yes, it still works this way.

I can't figure out from the CLHS what this should return.  However, both
clisp and clozure cl return a relative pathname.  Based on the comments
for TRANSLATE-DIRECTORIES, cmucl has basically always returned a
pathname directory that is the same kind as the source.

I think I prefer your interpretation.  We can always trivially get back
the old result if the TO pattern is an absolute path.

Ray





Reply via email to