Page 1 of 1

Slashes

Posted: Thu Dec 20, 2007 10:08 am
by pjot
Hi,

In the release notes of 9.2.10 I see the following:

On Win32 function 'directory?' now will accept training slahes '\' or '/'
before it would always fails on trailing slashes
If I test it:
c:\Scripts>newlisp
newLISP v.9.2.10 on Win32, execute 'newlisp -h' for more info.

> (directory? "c:\\temp")
true
> (directory? "c:\\temp\\")
true
> (directory? "c:\\")
nil
> (directory? "c:\")

string token too long : "c:\")\r\n"
> (directory? "c:\\")
nil

>
So the 'root' directory of the C-drive is still not accepting the slash backward...? Any reason for this?

Also the documentation for (directory?) has not been adjusted (yet).

Peter

Posted: Thu Dec 20, 2007 1:03 pm
by Lutz
- directory? for drives is fixed in 9.2.11.

- docs will be updated for 'directory' is already updated for 'directory?'

Lutz