summaryrefslogtreecommitdiff
path: root/lib/spack/spack/util/environment.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spack/spack/util/environment.py')
-rw-r--r--lib/spack/spack/util/environment.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/spack/spack/util/environment.py b/lib/spack/spack/util/environment.py
index 53e0da32d7..c4e7ea3260 100644
--- a/lib/spack/spack/util/environment.py
+++ b/lib/spack/spack/util/environment.py
@@ -942,7 +942,9 @@ def environment_after_sourcing_files(*files, **kwargs):
source_file, suppress_output,
concatenate_on_success, dump_environment,
])
- output = shell(source_file_arguments, output=str, env=environment)
+ output = shell(
+ source_file_arguments, output=str, env=environment, ignore_quotes=True
+ )
environment = json.loads(output)
# If we're in python2, convert to str objects instead of unicode