The egrep and fgrep commands, which have been deprecated since release 2.5.3 (2007), now warn that they are obsolescent and should be replaced by grep -E and grep -F.
Every time egrep is invoked in zinit, the command issues the warning egrep: warning: egrep is obsolescent; using grep -E
Steps to reproduce
Open a terminal window or run a zinit command
Receive warnings every time egrep is executed within zinit
Expected behavior
No warning is issued and egrep is replaced internally with grep -E
Screenshots and recordings
Operating System & Version
linux-gnu | pc | x86_64 | x86_64 | x86_64 unknown
Zsh version
zsh 5.9 (x86_64-pc-linux-gnu)
Terminal emulator
xterm-kitty
If using WSL on Windows, which version of WSL
No response
Additional context
Applicable for grep >= v3.8 released September 3, 2022
Describe the bug
As of grep v3.8, grep now issues a warning every time egrep is invoked.
The release notes state:
Every time egrep is invoked in zinit, the command issues the warning
egrep: warning: egrep is obsolescent; using grep -E
Steps to reproduce
Expected behavior
No warning is issued and egrep is replaced internally with grep -E
Screenshots and recordings
Operating System & Version
linux-gnu | pc | x86_64 | x86_64 | x86_64 unknown
Zsh version
zsh 5.9 (x86_64-pc-linux-gnu)
Terminal emulator
xterm-kitty
If using WSL on Windows, which version of WSL
No response
Additional context
Applicable for grep >= v3.8 released September 3, 2022