SC1127
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.