#2321·shellcheck

SC3037: echo flags

Author: demurkyCreated Sep 6, 2021Updated Sep 28, 2026

For bugs

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

bash

#!/bin/sh
/bin/echo -e text

Here's what shellcheck currently says:

/bin/echo -e text
          ^-- SC3037: In POSIX sh, echo flags are undefined.

Here's what I wanted or expected to see:

/bin/echo, /usr/bin/echo, ... are binaries and are not builtin shell commands and are separate from the shell. shellcheck shouldn't warn about undefined flags for these binaries.