summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatt Belhorn <belhornmp@ornl.gov>2016-07-30 11:38:34 -0400
committerMatt Belhorn <belhornmp@ornl.gov>2016-07-30 11:38:34 -0400
commitdc7e0899a05cf4464552f4b3d41005e79571a15a (patch)
tree528325ebf3c7831dea50ae5a2a3914ca1667bd15 /lib
parent5bb2d3baa0ab0bd59d561c17bedfe242f9e1fe8c (diff)
downloadspack-dc7e0899a05cf4464552f4b3d41005e79571a15a.tar.gz
spack-dc7e0899a05cf4464552f4b3d41005e79571a15a.tar.bz2
spack-dc7e0899a05cf4464552f4b3d41005e79571a15a.tar.xz
spack-dc7e0899a05cf4464552f4b3d41005e79571a15a.zip
Invokes subshell without user init scripts.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/platforms/cray.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/platforms/cray.py b/lib/spack/spack/platforms/cray.py
index dc959c7eaf..fd58915c57 100644
--- a/lib/spack/spack/platforms/cray.py
+++ b/lib/spack/spack/platforms/cray.py
@@ -27,7 +27,8 @@ def _target_from_clean_env(name):
# CAUTION - $USER is generally needed to initialize the environment.
# There may be other variables needed for general success.
output = env('USER=%s' % os.environ['USER'],
- '/bin/bash', '-l', '-c', 'module list -lt',
+ '/bin/sh', '--noprofile', '-c',
+ 'source /etc/profile; module list -lt',
output=str, error=str)
pattern = 'craype-(?!{0})(\S*)'.format('|'.join(NON_TARGETS))
for line in output.splitlines():