[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

970602: compiling .F files with NAG f90



Steve,

>Date: 2 Jun 1997 13:01:07 -0500 
>From: "Steve Mauget" <address@hidden>
>Organization: USDA
>To: "Steve Emmerson" <address@hidden>
>Subject: Re: 970602: compiling .F fil 
>Keywords: 199706021417.IAA27579

In the above message, you wrote:

>         I submitted the following script (CFTEST >& ctest.log)
> 
> #! /bin/sh

The above line specifies that the interpreting shell will be /bin/sh.

>         echo '1'
>           cat >conftest.h <<\EOF
> /* C-style line comment */
> #define J 1
> EOF
>         echo '2'
>           cat >conftest.F <<\EOF
> #include "conftest.h"
> #define N 5
> /* C-style line comment */
>               real r(N)
>               stop N        /* C-style trailing comment */
>               end
> EOF
>         echo '3'
>         echo $status    /* My addition ...*/
>       /usr/local/bin/f90 -o conftest conftest.F
>         echo $status
>         rm conftest*
> exit
> 
> ...and here is the Standard Output/Error. Neither
> of the 2 echo $status lines in the script returned anything,

If you use /bin/sh to interpret the script, then you'll have to change
all the "$status" to "$?".

--------
Steve Emmerson   <address@hidden>