Replace "|&" syntax with "2>& |" syntax #974
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #973. Older versions of bash (< 4.1?) do not recognize the
|&
syntax for some reason. So this PR replaces the use of|&
with the more verbose, but equivalent,2>&1 |
syntax.Testing
Sourcing of
./setup.sh
was tested on Mac laptop having old version of bash (3.2.57
) and on Hercules having a newer version of bash (5.1.8
).Applications affected
Impacts only the installation of spack-stack
Systems affected
Impacts anyone installing spack-stack on a system with an old version of bash that doesn't support the
|&
syntax.Dependencies
N/A
Issue(s) addressed
Fixes #973
Checklist