Slashes

Machine-specific discussion
Unix, Linux, OS X, OS/2, Windows, ..?
Locked
pjot
Posts: 733
Joined: Thu Feb 26, 2004 10:19 pm
Location: The Hague, The Netherlands
Contact:

Slashes

Post 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

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

- directory? for drives is fixed in 9.2.11.

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

Lutz

Locked