Re: Exit code with Fortran 90



Hello,

On 2008-01-30 07:12:45 -0500, Andrea Francia <afrancia@xxxxxxxxxxxxxxxxxxxx> said:

If I use the istruction
stop n
where n is a integer I found that the program terminate with n as exit code.

I see that this happen compiling when I use the GNU Fortran compiler (gfortran).

Is this behaviour standard, or it is a special behaviour of gfortran?

This behavior is unspecified by the f90/95/2003 standard.
These standards have no idea what an exit code is,
nor what a process is, and so on.

It is a recommendation, with caveats, in the f08 draft.

--

Cheers!

Dan Nagle

.



Relevant Pages

  • Exit code with Fortran 90
    ... where n is a integer I found that the program terminate with n as exit code. ... I see that this happen compiling when I use the GNU Fortran compiler. ... Is this behaviour standard, or it is a special behaviour of gfortran? ...
    (comp.lang.fortran)
  • Re: Exit code with Fortran 90
    ... where n is a integer I found that the program terminate with n as exit code. ... I see that this happen compiling when I use the GNU Fortran compiler. ... Is this behaviour standard, or it is a special behaviour of gfortran? ...
    (comp.lang.fortran)
  • Re: Exit code with Fortran 90
    ... where n is a integer I found that the program terminate with n as exit code. ... I see that this happen compiling when I use the GNU Fortran compiler. ...
    (comp.lang.fortran)
  • Re: Exit code with Fortran 90
    ... where n is a integer I found that the program terminate with n as exit code. ... I see that this happen compiling when I use the GNU Fortran compiler. ... it is quite useful when implemented as an exit code that can be passed to other process/command interpreters. ...
    (comp.lang.fortran)