Changeset 1067


Ignore:
Timestamp:
09/23/14 15:52:47 (10 years ago)
Author:
sdipsl
Message:
  • correct a typo
  • protect elements to be included in an indexed array
File:
1 edited

Legend:

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

    r1065 r1067  
    319319      code=2000 
    320320      # RabbitMQ message body 
    321       Body=$( echo "{${genericSimulationID},\"msgCode\":\"${code}\",\"msgUID\":\"$(uuidgen)\",\"nesting\":\"${IGCM_debug_LenStack}\",\"command\":\"{IGCM_debug_Stack[0]}\",\"arguments\":\[\"{IGCM_debug_StackArgs[0]}\"\],\"msgTimestamp\":\"$( date +"%Y-%m-%dT%H:%M:%S.%N%z" )\"}" ) 
     321      Body=$( echo "{${genericSimulationID},\"msgCode\":\"${code}\",\"msgUID\":\"$(uuidgen)\",\"nesting\":\"${IGCM_debug_LenStack}\",\"command\":\"${IGCM_debug_Stack[0]}\",\"arguments\":[\"${IGCM_debug_StackArgs[0]}\"],\"msgTimestamp\":\"$( date +"%Y-%m-%dT%H:%M:%S.%N%z" )\"}" ) 
    322322      # Fill the rabbitMQ queue 
    323323      IGCM_debug_sendAMQP 
     
    364364 
    365365      # Go from comma separated (list) to space separated in an array 
    366       set -A arguments $( echo ${IGCM_debug_StackArgs[0]} | sed -e "s/,/\ /g" ) 
     366      set -A arguments -- $( echo ${IGCM_debug_StackArgs[0]} | sed -e "s/,/\ /g" ) 
    367367 
    368368      # Save Stack information before poping the stack 
Note: See TracChangeset for help on using the changeset viewer.