shellcheck-3

A suggestion in changing 'grep' patterns would lead to a false behaviour, if applied as such by the user. The fix is to be more restrictive when suggesting this replacement, specifically the grep context-options -A and -B.

ghc-version: 9.2.5

hasbugs-version: 1.0.0

license: GPL3

build-framework: stack

Repository
Test Frameworks:
GitHub Artifacts :

Faults @dd626686

[
  {
    "endline": 569,
    "file": "./src/ShellCheck/Analytics.hs",
    "function": "checkPipePitfalls",
    "module": "ShellCheck.Analytics",
    "startline": 569
  },
  {
    "endline": 572,
    "file": "./src/ShellCheck/Analytics.hs",
    "function": "checkPipePitfalls",
    "module": "ShellCheck.Analytics",
    "startline": 572
  }
]

Fixes @3a118246

[
  {
    "endline": 573,
    "file": "./src/ShellCheck/Analytics.hs",
    "function": "checkPipePitfalls",
    "module": "ShellCheck.Analytics",
    "startline": 573
  },
  {
    "endline": 576,
    "file": "./src/ShellCheck/Analytics.hs",
    "function": "checkPipePitfalls",
    "module": "ShellCheck.Analytics",
    "startline": 576
  }
]