Changeset 268 for trunk/libIGCM/libIGCM_card/libIGCM_card.ksh
- Timestamp:
- 05/06/10 16:19:02 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_card/libIGCM_card.ksh
r223 r268 131 131 # Build name of array as $1_$2_$3 (cardname_Section_Option) 132 132 typeset name=${name1%%.*}_${2}_${3} 133 set -A ${name} -- ${NULL_STR} 133 eval unset ${name} 134 eval ${name}[0]=${NULL_STR} 134 135 set +A ${name} -- $( gawk -f ${libIGCM}/libIGCM_card/IGCM_card_PrintOption.awk -- "$@" | gawk -- 'BEGIN {FS="[() ,]+"} {for (i=2; i <= NF-1; i++) printf("%s ",$i)}' ) 135 136 else … … 155 156 # Build name of array as $1_$2 (cardname_Section) 156 157 typeset name=${name1%%.*}_${2} 157 set -A ${name} -- ${NULL_STR} 158 eval unset ${name} 159 eval ${name}[0]=${NULL_STR} 158 160 set +A ${name} -- $( gawk -f ${libIGCM}/libIGCM_card/IGCM_card_PrintSection.awk -- "$@" ) 159 161 else … … 196 198 197 199 # Watch for possible conflics : Check for other tmpfiles. 198 set -A tmpfiles -- $( ls $1_[0-9]* 2>/dev/null ) 200 unset tmpfiles 201 set +A tmpfiles -- $( ls $1_[0-9]* 2>/dev/null ) 199 202 typeset isleep 200 203 ((isleep=0)) … … 210 213 break ; 211 214 fi 212 set -A tmpfiles -- $( ls $1_[0-9]* 2>/dev/null ) 215 unset tmpfiles 216 set +A tmpfiles -- $( ls $1_[0-9]* 2>/dev/null ) 213 217 done 214 218
Note: See TracChangeset
for help on using the changeset viewer.