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

Bug-mining: grep compatibility issue (BSD vs GNU) in minimize patch script #439

Open
rrrrrrockpang opened this issue Aug 16, 2021 · 0 comments

Comments

@rrrrrrockpang
Copy link

rrrrrrockpang commented Aug 16, 2021

The minimize-patch script uses grep to verify that the minimization does not alter the number and behavior of triggering tests. The grep invocation uses a GNU-specific option, which is not available under BSD:

grep: unrecognized option `--no-group-separator'
usage: grep [-abcDEFGHhIiJLlmnOoqRSsUVvwxZ] [-A num] [-B num] [-C[num]]
        [-e pattern] [-f file] [--binary-files=value] [--color=when]
        [--context[=num]] [--directories=action] [--label] [--line-buffered]
        [--null] [pattern] [file ...]

Installing GNU coreutils on OSX is a workaround, but the script should either use a portable grep solution or use native Perl functinos.

@rrrrrrockpang rrrrrrockpang changed the title grep compatibility issue bsd vs gnu bugmining: minimize-path. grep compatibility issue bsd vs gnu Aug 16, 2021
@rjust rjust changed the title bugmining: minimize-path. grep compatibility issue bsd vs gnu Bug-mining: grep compatibility issue (BSD vs GNU) in minimize patch script Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants