Skip to content

Files

Latest commit

 

History

History
27 lines (17 loc) · 590 Bytes

SC2197.md

File metadata and controls

27 lines (17 loc) · 590 Bytes

Pattern: Use of deprecated fgrep

Issue: -

Description

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

Exceptions

ShellCheck will fail to recognize when functions override fgrep. Consider giving it a different name or ignore this error.

Further Reading