Pattern: Use of deprecated egrep
Issue: -
egrep
is a deprecated command. Its functionality is provided in POSIX by grep -E
.
Example of incorrect code:
egrep 'foo|bar' file
Example of correct code:
grep -E 'foo|bar' file
ShellCheck will fail to recognize when functions override egrep
. Consider giving it a different name or ignore this error.