Updated SC1042 (markdown)

haruna
2021-05-21 03:35:08 +09:00
parent d3fc023542
commit 7698388ce2

@@ -1,4 +1,22 @@
Found 'eof' further down, but not on a separate line. # Close matches include '-eof' (!= 'eof').
Close matches include '-eof' (!= 'eof').
See companion error [[SC1041]]. ## Problematic code:
```bash
#!/bin/bash
cat <<-eof
Hello World
-eof
```
## Correct code:
```bash
#!/bin/bash
cat <<-eof
Hello World
eof
```
## Rationale:
See companion error [[SC1041]]. This error occurs at the same time it.