zdharma-continuum / zinit-annex-bin-gem-node

Unmaintained mirror of zinit-zsh/z-a-bin-gem-node
Other
7 stars 9 forks source link

[bug]: egrep is deprecated and grep issues warnings as such #12

Open kaymmm opened 2 years ago

kaymmm commented 2 years ago

Describe the bug

As of grep v3.8, grep now issues a warning every time egrep is invoked.

The release notes state:

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

  1. Open a terminal window or run a zinit command
  2. 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

Screenshot_20220910_080006

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