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

Re: [MacPerl] MacPerl versus -w



At 12.04 -0700 2000.05.10, Mat Marcus wrote:
>Hi MacPerlers,
>
>Perhaps someone can help me. I am trying to evangelize macperl within my
>group. My current efforts are focused on training people to use find2perl
>under MPW. We are empoying a source code control system which is NOT
>Projector/ckid based. Instead it unlocks files when they are checked out and
>relocks them on checkin. In addition one is expected to be connected to the
>network whenever checking out a file. Well, sometimes this is not possible.
>I may manually unlock some files  on my laptop files during a meeting ( no
>Airport :-( ). It seemed to me that a really cool use of find2perl would
>involve scanning the source tree looking for unclocked .cpp or .h files. As
>I posted to this group some time ago it appears that the -w test does not
>work for soft locked files under the current release of MacPerl. I know I
>could rely on checking the error code returned by calling 'open' or some
>other such hack, but this hardly helps in my evangelism efforts. Not only
>that, but I would like a reasonably fast test since the script will probably
>have to visit tens of thousands of files. Will -w be fixed in 5.6 or in a
>patch to the current version? I am looking for a reasonably fast yet elegant
>solution. Perhaps I should just use a toolbox call? Suggestions anyone?

I think that since a locked file in Mac OS is the same as mode 0444, it is
reasonable that -w/-W return false for a locked file in the next version.

-- 
Chris Nandor       |     pudge@pobox.com      |     http://pudge.net/
Andover.Net        | chris.nandor@andover.net | http://slashcode.com/

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org