[torquedev] multiline env torque 2.5.4
Kaizaad Bilimorya
kaizaad at sharcnet.ca
Tue Feb 8 21:43:40 MST 2011
Hello Developers,
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
More information about the torquedev
mailing list