summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Belhorn <belhornmp@ornl.gov>2016-08-01 17:03:50 -0400
committerMatt Belhorn <belhornmp@ornl.gov>2016-08-01 17:04:09 -0400
commite864d2764171b2dbd539bac16dbb7a28910407a9 (patch)
tree024e0c232b4b3e752447754ee4c1d61630ca3572
parentaaa5c9e8a473cccbe3b5e7258bc5f9b7ff4d8c6c (diff)
downloadspack-e864d2764171b2dbd539bac16dbb7a28910407a9.tar.gz
spack-e864d2764171b2dbd539bac16dbb7a28910407a9.tar.bz2
spack-e864d2764171b2dbd539bac16dbb7a28910407a9.tar.xz
spack-e864d2764171b2dbd539bac16dbb7a28910407a9.zip
Replaces bash-ism `source` for POSIX-compliant `.`
Change is made in order to use `/bin/sh` on systems where `/bin/sh` is not simply an alias for `/bin/bash --norc`.
-rw-r--r--lib/spack/spack/platforms/cray.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/platforms/cray.py b/lib/spack/spack/platforms/cray.py
index d43580df06..68f1453edf 100644
--- a/lib/spack/spack/platforms/cray.py
+++ b/lib/spack/spack/platforms/cray.py
@@ -28,7 +28,7 @@ def _target_from_clean_env(name):
# There may be other variables needed for general success.
output = env('USER=%s' % os.environ['USER'],
'/bin/sh', '--noprofile', '-c',
- 'source /etc/profile; module list -lt',
+ '. /etc/profile; module list -lt',
output=str, error=str)
default_modules = [i for i in output.splitlines()
if len(i.split()) == 1]