It seems that since the upgrade to Debian Stretch, jsub’s -v option can no longer be used to alter the $PATH of a job:
lucaswerkmeister@tools-sgebastion-07:~$ export PATH=~/.local/bin:$PATH lucaswerkmeister@tools-sgebastion-07:~$ export OTHERVAR=somethingelse lucaswerkmeister@tools-sgebastion-07:~$ declare -p PATH OTHERVAR declare -x PATH="/home/lucaswerkmeister/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games" declare -x OTHERVAR="somethingelse" lucaswerkmeister@tools-sgebastion-07:~$ jsub -sync y -v PATH -v OTHERVAR env Your job 6181337 ("env") has been submitted Job 6181337 exited with exit code 0. lucaswerkmeister@tools-sgebastion-07:~$ grep -e '^PATH=' -e '^OTHERVAR=' env.out OTHERVAR=somethingelse PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
The specified version, -v PATH="$PATH", doesn’t work either. This broke the Wikidata Shape Expressions Inference tool – I’ve worked around it with R2390:cb848cc4a744: Specify PATH differently in job runner, but this might also be a problem for others, so I figured I should report it.
Workarounds:
- Invoke env PATH="$PATH" YOUR_COMMAND... instead of YOUR_COMMAND... directly.
- Pass -shell n to qsub. Note that jsub doesn’t support this option (yet?), and that this may also cause other problems.