Re: rcs-5.8 test failure

Paul Eggert <[email protected]> Tue, 18 Oct 2011 09:15:26 -0700
Newsgroups gmane.comp.version-control.rcs.bugs
Organization UCLA Computer Science Department
Message-ID <[email protected]>
On 10/17/11 17:48, Mr. Aaron W. Swenson wrote:
> On a side note, how about using:
> 
>     touch -c $wd/toe &> /dev/null && dont_check_readonly=true
> 
> To test for whether or not it's read-only? You wouldn't have to cleanup
> after yourself then.

We need to create a file of some sort, in order to test
whether you can write to it.  Since "touch -c" doesn't
create a file, there'd be no file to test.

> And isn't 'umask a-w' useless, or am I missing something?

It affects the behavior of the ">$wd/toe" later in that script,
by making $wd/toe unwritable.  Typically umask (a shell builtin)
is much faster than chmod (an executable).