close Warning: Can't synchronize with repository "(default)" ("(default)" is not readable or not a Git repository.). Look in the Trac log for more information.

Opened 9 years ago

Last modified 9 years ago

#88 new defect


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


enough-namestring doesn't work for this example:

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

   #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 9 years ago by Raymond Toy

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.