Skip to content

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

@kaymmm

Description

@kaymmm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions