Fwd: Re: [cmucl-help] TRANSLATE-PATHNAME Bug?

Raymond Toy toy.raymond at gmail.com
Fri Jan 29 19:58:25 CET 2010

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.)


-------- Original Message --------
Subject: 	Re: [cmucl-help] TRANSLATE-PATHNAME Bug?
Date: 	Fri, 29 Jan 2010 12:57:34 -0500
From: 	Raymond Toy <toy.raymond at gmail.com>
To: 	Marco Antoniotti <marcoxa at cs.nyu.edu>

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.
> NAME: "helambdap-pkg".
> TYPE: "lisp".
> *
> 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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zs64.net/mailman-archive/cmucl-help/attachments/20100129/8da3e14c/attachment.html>

More information about the cmucl-help mailing list