Changeset 530 for palm/trunk/SCRIPTS


Ignore:
Timestamp:
Apr 1, 2010 7:36:48 AM (14 years ago)
Author:
heinze
Message:

Bugfix concerning the treatment of special character * in NCL variables containing lists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/palmplot

    r529 r530  
    1212    #                    blank separated lists instead of comma
    1313    #                    separated lists
     14    # 01/04/10 - Rieke - bugfix - treatment of special character *
     15    #                    in NCL variables containing lists corrected
    1416
    1517
     
    125127                 # SUBSTITUTING BLANKS WITH COMMAS IN
    126128                 # PARAMETERS CONTAINING LISTS OF VARIABLES
    127                  value=`echo $value | sed 's/ /,/g'`           
     129                 value=`echo $value | sed 's/ /,/g'`   
     130                 
     131                 # ALLOWING THE USAGE OF COMMA SEPARATED LIST AS WELL         
    128132                 if [[ "$value" == ${value#,} ]]
    129133                 then
     
    133137                 then
    134138                    value=$value,
    135                  fi
     139                 fi             
     140                 value=${value/%\*,,/\*,}                 
     141
    136142                 break
    137143              fi
Note: See TracChangeset for help on using the changeset viewer.