Greetings!

The spec is still a little ambiguous, but these lines indicate to me
that GCL, clisp, and corman have it right (don't know why clisp throws
an error, but in general I use clisp all the time to test ansi
compliance issues.)

probe-file tests whether a file exists.

probe-file returns false if there is no file named pathspec, and otherwise 
returns the truename of pathspec.

A file here should be sopentheing that could be opened with (open...)
-- we have no such ability currently for directories.

Is this a problem to follow in mingw?

Take care,


"Mike Thomas" <[EMAIL PROTECTED]> writes:

> Hi Bill.
> 
> | Can you imagine what recent change (last week?) might lead
> | to this failure? Perhaps the change to probe-file or related
> | routine?
> 
> You are right; the probe-file change.
> 
> (probe-file "./") returns nil on Windows with the latest changes.
> 
> In daase.lisp.pamphlet the "./" is hard wired:
> 
>   (localdatabase nil
>      (list (list '|dir| (namestring (probe-file "./")) ))
>      'make-database)
> 
> 
> 
> Lispworks gives:
> 
> CL-USER 1 > (probe-file "./")
> #P"C:/Documents and Settings/miketh/"
> 
> CL-USER 2 > (truename "./")
> #P"C:/Documents and Settings/miketh/"
> 
> 
> 
> Corman Lisp gives:
> 
> (probe-file "./")
> NIL
> (truename "./")
> #P"C:/Documents and Settings/miketh/"
> 
> CLISP:
> 
> [1]> (truename "./")
> #P"C:\\Documents and Settings\\miketh\\Desktop\\"
> [2]> (probe-file "./")
> 
> *** - no file name given: #P"C:\\Documents and Settings\\miketh\\Desktop\\"
> 1. Break [3]> :C 1
> 
> 
> Windows GCL currently follows Corman on this one and the Hyperspec says
> this:
> 
> http://www.lisp.org/HyperSpec/Body/fun_probe-file.html
> 
> 
> Common Lisp experts:
> 
> 1. Which behaviour is correct on Windows?  (I believe that "." and ".." are
> actual entities on Unix, but not Windows.  Convenience argues for following
> LW rather than Corman.)
> 
> 2. What is the system independent way to get the name of the current
> directory in Common Lisp?
> 
> 
> Cheers
> 
> Mike Thomas.
> 
> 
> 
> 
> _______________________________________________
> Gcl-devel mailing list
> Gcl-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/gcl-devel
> 
> 
> 

-- 
Camm Maguire                                            [EMAIL PROTECTED]
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah


_______________________________________________
Axiom-developer mailing list
Axiom-developer@nongnu.org
http://lists.nongnu.org/mailman/listinfo/axiom-developer

Reply via email to