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