#2574·shellcheck

Catch undefined commands / functions

Author: functiconsCreated Sep 14, 2022Updated Sep 22, 2026

For new checks and feature suggestions

Is it possible to generate warning for undefined command / function? The use case is to catch typos. In practice, I'm okay to maintain a dictionary of command / function names.

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

bash

#!/bin/bash

echa "hello world"

Here's what shellcheck currently says:

No issues detected!

Here's what I wanted or expected to see:

Unknown command "echa"