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

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.

Rationale:

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

In Bourne based shell scripts, the comment character is #

Exceptions:

None.

ShellCheck

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

Clone this wiki locally