Skip to content

Comments

Change: Replace egrep usage with grep -E#38

Merged
alphapapa merged 2 commits intomasterfrom
unknown repository
Aug 26, 2023
Merged

Change: Replace egrep usage with grep -E#38
alphapapa merged 2 commits intomasterfrom
unknown repository

Conversation

@ghost
Copy link

@ghost ghost commented Apr 11, 2023

Summary

Replaces deprecated usage of egrep with grep -E. Resolves the warning egrep: warning: egrep is obsolescent; using grep -E.

What happened to egrep and fgrep?

7th Edition Unix had commands egrep and fgrep that were the counterparts of the modern ‘grep -E’ and ‘grep -F’. Although breaking up grep into three programs was perhaps useful on the small computers of the 1970s, egrep and fgrep were deemed obsolescent by POSIX in 1992, removed from POSIX in 2001, deprecated by GNU Grep 2.5.3 in 2007, and changed to issue obsolescence warnings by GNU Grep 3.8 in 2022; eventually, they are planned to be removed entirely.

Usage - GNU Grep (section "What happened to egrep and fgrep?")

@alphapapa
Copy link
Owner

Thanks. I'll plan to merge this when I work on this project again.

@alphapapa alphapapa self-assigned this Apr 12, 2023
@alphapapa alphapapa added this to the 0.6 milestone Apr 12, 2023
@alphapapa alphapapa merged commit 2ce3d4b into alphapapa:master Aug 26, 2023
@ghost ghost deleted the change/egrep-to-grep branch August 27, 2023 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant