SC1127 – ShellCheck Wiki

See this page on GitHub

Sitemap


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 is a static analysis tool for shell scripts. This page is part of its documentation.