call system in test cases?

Steve Kargl sgk@troutmask.apl.washington.edu
Sun Jan 16 23:11:00 GMT 2005


On Sun, Jan 16, 2005 at 10:48:47PM +0100, FX Coudert wrote:
> >What is the best way to go about this?  Currently, I use
> >call system("touch foo.bar; chmod u-w foo.bar").  Is there
> >anything more elegant or portable?
> 
> If I am not mistaken, there is a chmod intrinsic function in g77, but I 
> think it is not implemented yet in gfortran.
> 

You are correct.  Chmod was on my list of intrinsics to implement, but
I haven't found the time or desire to do so.

-- 
Steve



More information about the Fortran mailing list