[torquedev] [Bug 111] New: multiline env torque 2.5.4

bugzilla-daemon at supercluster.org bugzilla-daemon at supercluster.org
Wed Feb 9 07:47:59 MST 2011


http://www.clusterresources.com/bugzilla/show_bug.cgi?id=111

           Summary: multiline env torque 2.5.4
           Product: TORQUE
           Version: 2.5.x
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: pbs_server
        AssignedTo: dbeer at adaptivecomputing.com
        ReportedBy: kaizaad at sharcnet.ca
                CC: torquedev at supercluster.org
   Estimated Hours: 0.0


Seemed to have stumbled onto an issue with torque 2.5.4 and multiline
environment variables with bash:

[kaizaad at orc-login1 ~]$ printenv module
() {  eval `/usr/bin/modulecmd bash $*`
}

[kaizaad at orc-login1 ~]$ qsub -q test -I -V
qsub: waiting for job 44972.orc-admin2.orca.sharcnet to start
qsub: job 44972.orc-admin2.orca.sharcnet ready

-bash: module: line 1: syntax error: unexpected end of file
-bash: error importing function definition for `module'

Doesn't seem to be something specific to Environment Modules:

[kaizaad at orc-login1 ~]$ unset module
[kaizaad at orc-login1 ~]$ myfunc() { echo 'hello word'; }
[kaizaad at orc-login1 ~]$ export -f myfunc
[kaizaad at orc-login1 ~]$ printenv myfunc
() {  echo 'hello word'
}

[kaizaad at orc-login1 ~]$ qsub -q test -I -V
qsub: waiting for job 44973.orc-admin2.orca.sharcnet to start
qsub: job 44973.orc-admin2.orca.sharcnet ready

-bash: myfunc: line 1: syntax error: unexpected end of file
-bash: error importing function definition for `myfunc'


I tried this with a pbs_server version 2.4.7 and it works fine.

thanks
-k

-- 
Configure bugmail: http://www.clusterresources.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the torquedev mailing list