Skip to content
Snippets Groups Projects
Commit 258dfc70 authored by Michael Kuhn's avatar Michael Kuhn Committed by Todd Gamblin
Browse files

Export spack function so it works in subshells (#2908)

parent c7608890
No related branches found
No related tags found
No related merge requests found
......@@ -167,6 +167,11 @@ function _spack_pathadd {
fi
}
# Export spack function so it is available in subshells (only works with bash)
if [ -n "${BASH_VERSION:-}" ]; then
export -f spack
fi
#
# Figure out where this file is. Below code needs to be portable to
# bash and zsh.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment