mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Created SC1099 (markdown)
23
SC1099.md
Normal file
23
SC1099.md
Normal file
@@ -0,0 +1,23 @@
|
||||
## 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.
|
Reference in New Issue
Block a user