summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPhil Carns <carns@mcs.anl.gov>2019-02-13 20:52:18 -0500
committerPeter Scheibel <scheibel1@llnl.gov>2019-02-13 19:52:18 -0600
commit6971f8ae32c7baf6aedae3de6acee8996040e847 (patch)
treecde599f36fd970f4118a7d1095107f79d266c177 /bin
parent8ca384875efffbcee1881db9fdef4399e74add50 (diff)
downloadspack-6971f8ae32c7baf6aedae3de6acee8996040e847.tar.gz
spack-6971f8ae32c7baf6aedae3de6acee8996040e847.tar.bz2
spack-6971f8ae32c7baf6aedae3de6acee8996040e847.tar.xz
spack-6971f8ae32c7baf6aedae3de6acee8996040e847.zip
make SPACK_SHELL detection more robust (#9712)
Spack shell detection in setup-env.sh was originally based on examining the executable name of $$ (from "ps"). In some cases this does not actually give the name of the shell used, for example when setup-env.sh was invoked from a script using "#!". To make shell detection more robust, this adds a preliminary check for shell variables which indicate that the shell is bash or zsh; the executable name of $$ is retained as a fallback if those variables are not defined.
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions