Changeset 64


Ignore:
Timestamp:
03/17/09 18:50:43 (15 years ago)
Author:
sdipsl
Message:
  • Bug fix. ksh93 is very very strict
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_create_ts

    r62 r64  
    314314            PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' ) 
    315315            IGCM_date_GetYearMonth ${1} year month 
    316             (( year0=year )) 
     316            (( year0 = year )) 
    317317            if [ $(( month + 1 )) -lt 13 ] ; then 
    318318                month0=$(( month + 1 )) 
     
    366366            IGCM_date_GetYearMonth ${1} year month 
    367367            if [ X${2} = Xend ] ; then 
    368                 (( month = $month - $PeriodLengthInMonths + 1 )) 
     368                (( month = month - PeriodLengthInMonths + 1 )) 
    369369            fi       
    370             (( year0=year )) 
     370            (( year0 = year )) 
    371371            if [ $month -le 0 ] ; then 
    372                 (( month = $month + 12 )) 
     372                (( month = month + 12 )) 
    373373                year=$( printf "%04i\n" $(( year - 1 )) ) 
    374374            fi 
Note: See TracChangeset for help on using the changeset viewer.