Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace "|&" syntax with "2>& |" syntax #974

Merged

Conversation

christopherwharrop-noaa
Copy link
Contributor

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

  • This PR addresses one issue/problem/enhancement, or has a very good reason for not doing so.
  • These changes have been tested on the affected systems and applications.
  • All dependency PRs/issues have been resolved and this PR can be merged.

Copy link
Collaborator

@climbfuji climbfuji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I prefer 2>&1 | anyway ;-)

Keep using your old Big Sur system so that we find all these little bugs!

@climbfuji climbfuji merged commit acec075 into JCSDA:develop Jan 29, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

setup.sh broken for old versions of bash
2 participants