Charles Lane wrote:
> Peter Prymmer ([EMAIL PROTECTED]) writes:
> > BTW I just recently noted that with:
>
> > DEC C V5.3-006 on OpenVMS VAX V6.2
>
> > that perl's chdir("/unix/style/spec/") will not work but that
> > chdir("vms:[style.spec]") will. Hence File::Find is fubarred.
> > (Though this was primarily with perl 5.005_02).
>
> I think it's a CRTL thing, since it's the call to the CRTL's chdir()
> that causes the trouble.
>
> Notice that chdir('/unix/style/spec') works
> Notice that chdir('/unix/style/spec/') doesn't work
>
> We trim trailing '/' in a few places (mkdir) but not chdir...
That's got it! Thanks. I had been calling from DCL this:
find(\&wanted, unixify(shift()));
but unixify turns DISK:[DIR.SUBDIR] into /DISK/DIR/SUBDIR/ with a trailing
slash. I can remove that slash by hand.
Hmm this is DEC C version dependent. I'd guess that putting a warning
into the pod for File::Find wouldn't be appropriate and I am not
sure about that for VMS::Filespec. Maybe README.vms or VMS::Filespec?
Peter Prymmer