-
Notifications
You must be signed in to change notification settings - Fork 13.3k
refactor: use grep -E/-F instead of fgrep/egrep #102092
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Mark-Simulacrum (or someone else) soon. Please see the contribution instructions for more information. |
690e0ad
to
0acd8e7
Compare
What about BSD and Windows? Do they support |
It seems that BSD grep supports -E and -F. https://www.freebsd.org/cgi/man.cgi?query=grep&sektion=&n=1 Mingw grep supports these options, too. |
@bors r+ rollup |
refactor: use grep -E/-F instead of fgrep/egrep `egrep` and `fgrep` are obsolescent now. This PR updates all `egrep` and `fgrep` commands to `grep -E` and `grep -F`. Running egrep/fgrep command with grep v3.8 will output the following warning to stderr: ``` egrep: warning: egrep is obsolescent; using grep -E ``` - https://www.phoronix.com/news/GNU-Grep-3.8-Stop-egrep-fgrep - https://lists.gnu.org/archive/html/info-gnu/2022-09/msg00001.html
…iaskrgr Rollup of 9 pull requests Successful merges: - rust-lang#102092 (refactor: use grep -E/-F instead of fgrep/egrep) - rust-lang#102781 (Improved documentation for `std::io::Error`) - rust-lang#103017 (Avoid dropping TLS Key on sgx) - rust-lang#103039 (checktools: fix comments) - rust-lang#103045 (Remove leading newlines from integer primitive doc examples) - rust-lang#103047 (Update browser-ui-test version to fix some flaky tests) - rust-lang#103054 (Clean up rust-logo rustdoc GUI test) - rust-lang#103059 (Fix `Duration::{try_,}from_secs_f{32,64}(-0.0)`) - rust-lang#103067 (More alphabetical sorting) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
egrep
andfgrep
are obsolescent now. This PR updates allegrep
andfgrep
commands togrep -E
andgrep -F
.Running egrep/fgrep command with grep v3.8 will output the following warning to stderr: