Sub-clause 9.10.2.26 RECL= specifier in the INQUIRE statement
of f2008, j3/10-007r1 has:
*quote*
If the connection is for formatted input/output,
the length is the number of characters for all
records that contain only characters of default kind.
*end quote*
What exactly does "all records" mean here?
If the file contains multiple records of different
length, what should be returned?
For this code on linux:
integer :: rec, funit
call execute_command_line( "ls -alR . > zzz" )
open( newunit=funit, file="zzz", access="sequential", form="formatted", &
status="old")
inquire( file="zzz ", recl=rec )
write (*,*) "recl:", rec
close( funit )
end
one compiler gives:
recl: -1
and another gives:
recl: 132
How should -1 be interpreted?
Thanks
Anton
|