[hunchentoot-devel] handle-static-file patch

Victor Kryukov victor.kryukov at gmail.com
Sat Feb 9 18:31:21 UTC 2008


Cyrus Harmon <ch-tbnl at 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




More information about the Tbnl-devel mailing list