close Warning: Can't synchronize with repository "(default)" (/project/cmucl/public_html/git/cmucl.git does not appear to be a Git repository.). Look in the Trac log for more information.

Opened 4 years ago

Last modified 4 years ago

#88 new defect

enough-namestring

Reported by: heller Owned by: somebody
Priority: major Milestone:
Component: Core Version: 20e
Keywords: Cc:

Description

enough-namestring doesn't work for this example:

* (enough-namestring "foo/bar.lisp" (truename "./"))

Error in function (FLET LISP::LOSE LISP::UNPARSE-UNIX-ENOUGH):
   #P"foo/bar.lisp" cannot be represented relative to #P"/tmp/"
   [Condition of type SIMPLE-ERROR]

I would expect a result like "foo/bar.lisp".

Change History (1)

comment:1 Changed 4 years ago by rtoy

This is my expectation too, but comments in the code for unparse-unix-enough says that you can't represent a relative directory relative to an absolute directory, which is what we have here. The comment doesn't explain why, so it must have been obvious at that time.

More thinking required.

Note: See TracTickets for help on using tickets.