Skip to content

Commit

Permalink
gh-35565: replace obsolescent egrep
Browse files Browse the repository at this point in the history
    
<!-- Please provide a concise, informative and self-explanatory title.
-->
<!-- Don't put issue numbers in the title. Put it in the Description
below. -->
<!-- For example, instead of "Fixes #12345", use "Add a new method to
multiply two integers" -->

### 📚 Description

replace the last 2 uses of `egrep` in our source code, using the
replacement `grep -E`

<!-- Describe your changes here in detail. -->
<!-- Why is this change required? What problem does it solve? -->
<!-- If this PR resolves an open issue, please link to it here. For
example "Fixes #12345". -->
<!-- If your change requires a documentation PR, please link it
appropriately. -->

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. It should be `[x]` not `[x
]`. -->

- [x] The title is concise, informative, and self-explanatory.
- [x] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation accordingly.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on
- #12345: short description why this is a dependency
- #34567: ...
-->

<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
    
URL: #35565
Reported by: Frédéric Chapoton
Reviewer(s): Matthias Köppe
  • Loading branch information
Release Manager committed May 21, 2023
2 parents 91be339 + 5ced222 commit 0772e47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bin/sage-grep
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

cd "$SAGE_SRC"

find sage -print | GREP_OPTIONS= egrep '.py([xdi])?$' | xargs grep "$@"
find sage -name "*.py" -o -name "*.pyx" -o -name "*.pxi" -o -name "*.pxd" | xargs grep "$@"
2 changes: 1 addition & 1 deletion src/bin/sage-grepdoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

cd "$SAGE_DOC"

find html -print | GREP_OPTIONS= egrep '.html$' | xargs grep "$@"
find html -name '*.html' | xargs grep "$@"

0 comments on commit 0772e47

Please sign in to comment.