Cyrus Harmon ch-tbnl@bobobeach.com writes:
On Feb 8, 2008, at 6:19 AM, Edi Weitz wrote:
On which Lisp does that solve the problem?
CLISP on Windows:
CL-USER> (pathname-name (truename "c:\WINDOWS")) "WINDOWS"
AllegroCL on Linux:
CL-USER(1): (pathname-name (truename "/tmp")) "tmp"
(Yes, these are both directories.)
I fear we're in unknown territory and need to resort to something like CL-FAD for a real solution... :(
Darn. On SBCL on Mac OS (and presumably linux, etc...) I get:
CL-USER> (pathname-name (truename "/tmp")) NIL
Just for the record:
SBCL 1.0.14.10 on x86-64 linux:
CL-USER> (pathname-name (truename "/tmp")) NIL
CLISP 2.41 on x86-64 linux:
[1]> (truename "/tmp")
*** - TRUENAME: "/tmp" names a directory, not a file The following restarts are available: ABORT :R1 ABORT Break 1 [2]>
[16]> (truename "/tmp/") #P"/tmp/" [18]> (pathname-name (truename "/tmp/")) NIL