Skip to content

Commit 5ec6004

Browse files
committed
Don't forget --silent from GNU grep
1 parent e6bd9e9 commit 5ec6004

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ShellCheck/Checks/Commands.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ checkGrepSendsPipefailImpl cmd = do
447447
-- but GNU grep does. This is consistent with the linter practice of warning
448448
-- about potential problems, while also allowing users to disable specific
449449
-- linter checks locally.
450-
earlyExitFlags = ["q", "quiet", "m", "max-count", "L"]
450+
earlyExitFlags = ["q", "quiet", "--silent", "m", "max-count", "L"]
451451
isEarlyExitFlag name = name `elem` earlyExitFlags
452452
parseGrepOpts = getOpts (True, True)
453453
"cilLnoqsvwxhHrRbaEFGPe:f:m:A:B:C:d:D:"

0 commit comments

Comments
 (0)