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 11 years ago

Last modified 11 years ago

#88 new defect

enough-namestring

Reported by: Helmut Eller 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 11 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.