[REBOL] Re: bug: to-file ""
From: joel:neely:fedex at: 21-Jun-2002 17:39
Hi, Volker,
Volker Nitsch wrote:
> Hi Anton,
>
> Am Freitag, 21. Juni 2002 13:27 schrieb Anton:
> > I just noticed what I think is a bug:
> >
> > to-file "" ; == % ok, that's acceptable
> >
> > exists? to-file "" ; == true don't know about that, though
> >
> > read to-file ""
> > ** Access Error: Cannot open /D/Anton/Dev/Rebol/View/local/util/
> > ** Near: read to-file ""
> >
> > So a file with a blank filename exists, does it?
> > And if it exists, then I should be able to read it, right?
> >
>
> wrong ;)
> probe clean-path to-file ""
> and you see its a directory.
>
But not a real one...
>> what-dir
== %/c/rebol/view/
>> read %./
== [%public/ %rebol.exe %user.r %rebol.r %prefs.r %desktop/ %local/
%test.txt %output1.tmp %output2.tmp %output4.tmp %edit-prefs.r]
>> read to-file ""
** Access Error: Cannot open /c/rebol/view/
** Where: halt-view
** Near: read to-file ""
Note that the "Access Error" complains about being unable to open the
directory that I just read in the previous expression.
So something's still fishy, IMHO.
-jn-