It is a bug of request-dir.
http://www.rebol.org/library/scripts/request-dir.r

For some reason it is clipping off the final
slash of the current directory.
To see what I mean, issue what-dir before
and after request-dir.

The two lines of code which cause the problem are:

        if not all [keep path] [path: any [where what-dir]]
        if all [not empty? path slash = last path][remove back tail path]

The first line should be making a copy of what-dir.
The second line removes the slash, for reasons unknown.
It is better to keep the final slash for a directory, in
my opinion.

Anton.

> Anyone else come across this strange behaviour?
> 
> >> system/version
> == 1.2.10.3.1
> >> save %a.txt ""
> >> write %a.txt ""
> >> request-dir
> == none
> >> save %a.txt ""
> ** Access Error: Bad file path: a.txt
> ** Near: save %a.txt ""
> >> write %a.txt ""
> ** Access Error: Bad file path: a.txt
> ** Near: write %a.txt ""
> 
> 
> Regards,
> 
>       Ashley

-- 
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.

Reply via email to