Skip to content
koalaman edited this page Jan 18, 2018 · 1 revision


Each individual ShellCheck warning has its own wiki page like SC1000. Use GitHub Wiki's "Pages" feature above to find a specific one, or see Checks.

Clone this wiki locally

Was this intended as a comment? Use # in sh.

Problematic code:

// This is a comment.
/* This too. */

Correct code:

# This is a comment.
# This too.


ShellCheck found what appears to be a C-style comment, a line starting with // or /*.

In Bourne based shell scripts, the comment character is #