Skip to content
Joachim Ansorg edited this page Nov 12, 2021 · 3 revisions

You need a space before the #.

Problematic code:

while sleep 1
do# show time
  date
done

Correct code:

while sleep 1
do # show time
  date
done

Rationale:

ShellCheck has noticed that you have a keyword immediately followed by a #. In order for the # to start a comment, it needs to come after a word boundary such as a space.

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