Folks,
Have recently upgraded our HP-UX 10.20 fortran compiler from 1.0 to 2.5.3. One
difference I've run across is with the getarg function. The call looks like:
call getarg( n, string )
The user manuals for both versions state "When N=1, it returns the program
name. When N=0, it returns all blanks."
This was true for version 1.0, but I'm finding with 2.5.3 that N=0 returns the
program name and N=1 returns the first argument. Sample program t.f:
integer numargs
integer iargc
integer n
character*20 arg
numargs = iargc()
do n = 0, numargs
call getarg( n, arg )
print *, n, arg
end do
stop
end
To compile the program it's just "f90 -o t t.f".
So, did HP change the behavior and not update the manual, or is something else
messing me up?
Thanks,
Bob