diff options
-rw-r--r-- | lib/spack/spack/util/environment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/util/environment.py b/lib/spack/spack/util/environment.py index 276f8d63f3..38576d6e9d 100644 --- a/lib/spack/spack/util/environment.py +++ b/lib/spack/spack/util/environment.py @@ -72,4 +72,4 @@ def dump_environment(path): """Dump the current environment out to a file.""" with open(path, 'w') as env_file: for key, val in sorted(os.environ.items()): - env_file.write("%s=%s\n" % (key, val)) + env_file.write('export %s="%s"\n' % (key, val)) |