[GE issues] [Issue 2966] New - qsub -v "FOO=bar,baz" exports only FOO="bar" to the job environment

mcumings mcumings at gmail.com
Wed Mar 25 17:33:39 GMT 2009


http://gridengine.sunsource.net/issues/show_bug.cgi?id=2966
                 Issue #|2966
                 Summary|qsub -v "FOO=bar,baz" exports only FOO="bar" to the jo
                        |b environment
               Component|gridengine
                 Version|6.2u2
                Platform|All
                     URL|
              OS/Version|Solaris
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P2
            Subcomponent|execution
             Assigned to|pollinger
             Reported by|mcumings






------- Additional comments from mcumings at sunsource.net Wed Mar 25 10:33:39 -0700 2009 -------
When submitting a job with an environment variable containing the "," character,
only the portion of the variable value preceeding the comma is used in the
environment exported to the client.

==== To replicate:

- Create a job script (in this example, "grid_echo_FOO") with the
  following content:

#!/usr/bin/env bash
echo "FOO='${FOO}'"

- Submit the script for execution:

$ DIR_LOG=`pwd`/stdout
$ qsub -o ${DIR_LOG}/stdout -v 'FOO=bar,baz' grid_echo_FOO
Your job ... has been submitted
$ # Wait for the job to execute
$ cat ${DIR_LOG}/stdout
FOO='bar'
$

==== Workaround:

If the alternate form of the environment variable export is used
where only the variable name is provided, the environment variable
is exported properly.  Example:

$ FOO='bar,baz' qsub -o ${DIR_LOG}/stdout -v 'FOO' grid_echo_FOO
Your job ... has been submitted
$ # Wait for the job to execute
$ cat ${DIR_LOG}/stdout
FOO='bar,baz'
$

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

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



More information about the gridengine-users mailing list