Bug 2189126
| Summary: | gh prints out a useless egrep warning | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jouni Seppänen <jks> |
| Component: | gh | Assignee: | Mikel Olasagasti Uranga <mikel> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 38 | CC: | go-sig, maxwell, mikel |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-04-24 10:52:34 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Not able to reproduce with same release and package versions. - What browser are you using? - Do you have any environment variable for `GH_BROWSER` or `BROWSER`? $ env |grep -i browser I'm using Firefox, and I don't have either of those environment variables set. I used strace to figure out what gets executed, and the culprit seems to be xdg-open. Indeed, `grep egrep /usr/bin/xdg-open` finds an invocation of egrep. I suppose this is a duplicate of 2140197. *** This bug has been marked as a duplicate of bug 2140197 *** |
Description of problem: With some commands, e.g. `gh pr view --web` the last line of output is egrep: warning: egrep is obsolescent; using grep -E Presumably gh is calling out to an outdated command and should use another command instead. Version-Release number of selected component (if applicable): gh-2.27.0-1.fc38.x86_64 How reproducible: Every time Steps to Reproduce: 1. find a git repository that has a corresponding GitHub project, and a PR open 2. run `gh pr view --web` 3. observe the output Actual results: Opening github.com/... in your browser. egrep: warning: egrep is obsolescent; using grep -E Expected results: Opening github.com/... in your browser. Additional info: egrep from grep-3.8-3.fc38.x86_64