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

Build script: Replace mapfile with read loop for old bash versions #1425

Merged
merged 2 commits into from
Dec 29, 2020

Conversation

jmacd
Copy link
Contributor

@jmacd jmacd commented Dec 29, 2020

I'm running MacOS 10.15.7 and mapfile doesn't exist:

./get_main_pkgs.sh: line 26: mapfile: command not found

This workaround is recommended for older bash versions. Since MacOS uses zsh by default for user shells, this is unlikely to change.

@jmacd jmacd added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Dec 29, 2020
Copy link
Member

@XSAM XSAM left a comment

Choose a reason for hiding this comment

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

👍

@krnowak
Copy link
Member

krnowak commented Dec 29, 2020

Just one question: does this version of MacOS have bash that has readarray builtin function? It should be the same as mapfile.

@krnowak
Copy link
Member

krnowak commented Dec 29, 2020

Err, nevermind, just saw the diff.

@MrAlias MrAlias merged commit 045c3ff into open-telemetry:master Dec 29, 2020
@jmacd jmacd deleted the jmacd/oldbash branch June 18, 2021 06:56
@pellared pellared added this to the untracked milestone Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants