Open rebolbot opened 14 years ago
Submitted by: meijeru
On Windows:
>> make-dir %my-dir
== %my-dir/
>> read %my-dir
** Access error: cannot open: %my-dir reason: -3
** Where: read
** Near: read %my-dir
Submitted by: BrianH
Both the Mac crash and Windows error are serious and should be fixed in the next release, if possible.
Submitted by: abolka
Also crashes on Linux.
As a workaround, specify the directory with a trailing slash, and it should work (on all platforms):
>> read %foo/
== []
>> read %foo
== Segmentation fault
Submitted by: abolka
The crash is a duplicate of #1675: for the crash, problem is not that the directory is empty, it's that the directory filename is specified without trailing slash.
However, the "access error" is of course a bug (but no crash).
Submitted by: abolka
In the core-tests suite.
Submitted by: PeterWood
REBOL crashes when trying to read an empty directory.
CC - Data [ Version: alpha 99 Type: Bug Platform: Mac OSX Category: Native Reproduce: Always Fixed-in:none ]