mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-04 11:49:42 +08:00
Destroyed SC1042 (markdown)
22
SC1042.md
22
SC1042.md
@@ -1,22 +0,0 @@
|
|||||||
## Close matches include `-eof` (!= `eof`).
|
|
||||||
|
|
||||||
### 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.
|
|
Reference in New Issue
Block a user