Changeset 1124


Ignore:
Timestamp:
Apr 9, 2013 3:46:52 PM (12 years ago)
Author:
raasch
Message:

bugfix: variable memory is exported via typeset option -x, because otherwise an unknown side effect may lead to data loss when getopts is reading the script-option arguments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/mrun

    r1123 r1124  
    2222# Current revisions:
    2323# ------------------
    24 #
     24# variable "memory" is exported via typeset option -x, because otherwise an unknown
     25# side effect may lead to data loss when getopts is reading the script-option arguments
    2526#
    2627# Former revisions:
     
    210211 zeit=$( date | cut -c 12-19 )
    211212
    212  typeset -i  iec=0 iic=0 iin=0 ioc=0 iout=0 memory=0 stagein_anz=0 stageout_anz=0
     213 typeset -i  iec=0 iic=0 iin=0 ioc=0 iout=0 stagein_anz=0 stageout_anz=0
     214 typeset -x -i  memory=0   # has to be exported here, otherwise an unknown side
     215                           # effect may cause data loss when getopts is reading the
     216                           # script-option arguments
    213217 typeset -i  cputime i ii iia iii iio icycle inode ival jobges jobsek last_char_int maxcycle minuten nodes pes sekunden tp1
    214218
     
    222226    # EXPORTIERT WERDEN
    223227 export  afname config_file cpp_opts cpumax do_batch do_trace fname fromhost
    224  export  group_number input_list memory numprocs output_list queue run_mode
     228 export  group_number input_list numprocs output_list queue run_mode
    225229
    226230
Note: See TracChangeset for help on using the changeset viewer.