On May 11, 2007, at 12:18 PM, Mario Domenech Goulart wrote:
Hi folks,
Sorry for the maybe stupid question: is the following expression
supposed to return #f on Windows?
(file-exists? ".\\")
(file-exists? (current-directory)) returns the path to the current
directory.
Under Unix[-like] systems, (file-exists? "./") returns the path to the
current directory.
Version 2.614 - macosx-unix-gnu-ppc - [ libffi dload ptables
extraslot applyhook ]
(c)2000-2007 Felix L. Winkelmann
; loading ./.csirc ...
#;1> (file-exists? "./")
"./"
The implementation (##sys#expand-home-path in library.scm) only
expands a leading tilde, '~', or environment variable reference,
'$FOO'. There isn't any special recognition of the current directory
'directory'.
Shouldn't (file-exists? ".\\") return the path to the current
directory?
Not according to the documentation. But this can be changed.
Best wishes,
Mario
_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users
_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users