Changeset 1083


Ignore:
Timestamp:
10/07/14 18:03:24 (10 years ago)
Author:
sdipsl
Message:
  • Bugfixes:
  • Correct side effect due to r1065 and #223. Statistics on function call was broken
  • Correct side effect due to r1037 and #212. Dereference symbolic link to compute a meaningfull file size.
  • Exporting a variable declared typeset sounds like invoking undefined behavior. Affecting DEBUG_debug
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_debug/libIGCM_debug.ksh

    r1076 r1083  
    2525# DEBUG_debug 
    2626# Add low level verbosity 
    27 typeset DEBUG_debug=${DEBUG_debug:=false} 
     27DEBUG_debug=${DEBUG_debug:=false} 
    2828 
    2929#================================================== 
     
    135135      iEntity=${destination} 
    136136    fi 
    137     sizeKo=$( du --apparent-size -sk ${iEntity} | gawk '{print $1}' ) 
     137    sizeKo=$( du --apparent-size -skL ${iEntity} | gawk '{print $1}' ) 
    138138    sumSizeKo=$(( $sumSizeKo + $sizeKo )) 
    139139  done 
     
    364364      command=${IGCM_debug_Stack[0]} 
    365365 
    366       # Go from comma separated (list) to space separated in an array 
    367       set -A arguments -- $( echo ${IGCM_debug_StackArgs[0]} | sed -e "s/,/\ /g" ) 
     366      # Go from comma separated list of quoted elements (except the first and last element) 
     367      # to unquoted elements in an array 
     368      set -A arguments -- $( echo ${IGCM_debug_StackArgs[0]} | sed -e "s/\",\"/\ /g" ) 
    368369 
    369370      # Save Stack information before poping the stack 
Note: See TracChangeset for help on using the changeset viewer.