spack/share/spack
Todd Gamblin ac51bfb530 bugfix: no infinite recursion in setup-env.sh on Cray
On Cray platforms, we rely heavily on the module system to figure out
what targets, compilers, etc. are available. This unfortunately means
that we shell out to the `module` command as part of platform
initialization.

Because we run subcommands in a shell, we can get infinite recursion if
`setup-env.sh` and friends are in some init script like `.bashrc`.

This fixes the infinite loop by adding guards around `setup-env.sh`,
`setup-env.csh`, and `setup-env.fish`, to prevent recursive
initializations of Spack. This is safe because Spack never shells out to
itself, so we do not need it to be initialized in subshells.

- [x] add recursion guard around `setup-env.sh`
- [x] add recursion guard around `setup-env.csh`
2020-07-10 16:47:53 -07:00
..
bash spack extensions prints list of extendable packages (#14473) 2020-02-17 17:41:47 -06:00
csh Allow Spack Environments with '-h' in the name (#15429) 2020-04-15 12:38:31 -07:00
docker copyright: update copyright dates for 2020 (#14328) 2019-12-30 22:36:56 -08:00
docs/docker/module-file-tutorial copyright: update copyright dates for 2020 (#14328) 2019-12-30 22:36:56 -08:00
logo add artisanal handcrafted SVG Spack logo. (#6165) 2017-11-06 22:42:16 -08:00
qa Recover coverage from subprocesses during unit tests (#15354) 2020-03-20 11:38:28 -07:00
templates spack containerize generates containers from envs (#14202) 2020-01-30 17:19:55 -08:00
setup-env.csh bugfix: no infinite recursion in setup-env.sh on Cray 2020-07-10 16:47:53 -07:00
setup-env.sh bugfix: no infinite recursion in setup-env.sh on Cray 2020-07-10 16:47:53 -07:00
spack-completion.bash commands: use a single ThreadPool for spack versions (#16749) 2020-07-10 16:43:12 -07:00