Skip to content

Files

Latest commit

 

History

History
27 lines (17 loc) · 477 Bytes

SC1127.md

File metadata and controls

27 lines (17 loc) · 477 Bytes

Pattern: Use of C-style comment in shell script

Issue: -

Description

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

In Bourne based shell scripts, the comment character is #

Example of incorrect code:

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

Example of correct code:

# This is a comment.
# This too.

Further Reading