[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Path divider character?



Eike Grote <eike.grote@btp3x3.phy.uni-bayreuth.de> writes:
>Shawn Pearce wrote:
>> At 1:50 PM 5/20/96, Eike Grote wrote:
>> > Examples:
>> >
>> >   chdir("programms:test area");   # relative path

This is wrong.

>> Shouldn't relative START with a ":"????

Yes. To repeat once more: Relative paths either contain NO ':'s or START
with a ':'.

> BTW, maybe it is not necessary to use a special pathname delimiter;
> I've written a script that traverses a directory tree and it does
> _not_ use 'Find' and it does _not_ check the platform and it
> runs on both MacOS (as a droplet) and UNIX (like a shell script)
> without any changes.

This works of you do very careful chdirs.

Matthias

-----
Matthias Neeracher   <neeri@iis.ee.ethz.ch>   http://www.iis.ee.ethz.ch/~neeri
  "And that's why I am going to turn this world upside down, and make
   of it a fire so *bright* that someone real will notice"
                                -- Vernor Vinge, _Tatja Grimm's World_