#.while sleep 1
do# show time
date
donewhile sleep 1
do # show time
date
doneShellCheck 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.
None.
ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.