Skip to content

"Non-exhaustive patterns in function checkCmd" error #3479

Description

@antoniszymanski

For bugs with existing features

  • Rule Id (if any, e.g. SC1000):
  • My shellcheck version (shellcheck --version or "online"): v0.11.0 and v0.11.0-79-g764802b
  • [YES] The rule's wiki page does not already cover this (e.g. https://shellcheck.net/wiki/SC2086)
  • [NO] I tried on https://www.shellcheck.net/ and verified that this is still a problem on the latest commit

Here's a snippet or screenshot that shows the problem:

#!/usr/bin/bash
profile=$(source "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")/profile.sh")

Checked using this command:

shellcheck --external-sources $FILE

Here's what shellcheck currently says:

v0.11.0:

shellcheck: src/ShellCheck/Analytics.hs:4009:5-93: Non-exhaustive patterns in function checkCmd

v0.11.0-79-g764802b:

shellcheck: src/ShellCheck/Analytics.hs:4031:5-93: Non-exhaustive patterns in function checkCmd

Here's what I wanted or expected to see:

No errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions