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

tools/btdecode.sh: make grep overridable #13650

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

yamt
Copy link
Contributor

@yamt yamt commented Sep 26, 2024

Summary

This script seems to assume GNU grep, which is not commonly available as "grep" on some platforms. For examples, it's more common to have it named "ggrep" on BSD-based systems including macOS.

Ideally, I suppose we should avoid GNU dependencies like this in general. But I'm not motivated enough to rewrite this script in a portable way today.

cf. https://www.gnu.org/software/grep/manual/grep.html#grep-Programs-1

Impact

Testing

lightly tested on macOS with homebrew-installed GNU grep

This script seems to assume GNU grep, which is not commonly
available as "grep" on some platforms.  For examples, it's
more common to have it named "ggrep" on BSD-based systems
including macOS.

Ideally, I suppose we should avoid GNU dependencies like this
in general.  But I'm not motivated enough to rewrite this script
in a portable way today.

cf. https://www.gnu.org/software/grep/manual/grep.html#grep-Programs-1
@github-actions github-actions bot added Area: Tooling Size: XS The size of the change in this PR is very small labels Sep 26, 2024
@xiaoxiang781216 xiaoxiang781216 merged commit 1bf7780 into apache:master Sep 26, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Tooling Size: XS The size of the change in this PR is very small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants