[GE issues] [Issue 2958] New - Some variable names can't be used in Bourne shell JSV scripts

ernst Ernst.Bablick at sun.com
Wed Mar 18 11:32:58 GMT 2009


http://gridengine.sunsource.net/issues/show_bug.cgi?id=2958
                 Issue #|2958
                 Summary|Some variable names can't be used in Bourne shell JSV 
                        |scripts
               Component|gridengine
                 Version|6.2u2
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|kernel
             Assigned to|ernst
             Reported by|ernst






------- Additional comments from ernst at sunsource.net Wed Mar 18 04:32:54 -0700 2009 -------
Following variable names can't be used in the Boune shell JSV functions
jsv_on_start() and jsv_on_verify().

action
command
data
found
name
new_param
i
j
list
isdef
ret
param_name
state
sub_name
name
value

Following variable names are not allowed in the whole script

first
jsv_cli_params
jsv_mod_params
jsv_add_params
jsv_all_params
jsv_all_envs
logging_enabled
logfile
quitremaining
result
second
saved_ifs
third
undef

Reason is that the variables are already used by service function 
located in the module jsv_include.sh. If the value is nevertheless changed then 
these functions will not behave correclty.

To fix the problem a prefix for variable names like "__jsv" has to be used
within the code located in jsv_include.sh

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=36&dsMessageId=135266

To unsubscribe from this discussion, e-mail: [issues-unsubscribe at gridengine.sunsource.net].



More information about the gridengine-users mailing list