mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Created SC1043 (markdown)
28
SC1043.md
Normal file
28
SC1043.md
Normal file
@@ -0,0 +1,28 @@
|
||||
## Found EOF further down, but with wrong casing.
|
||||
|
||||
### Problematic code:
|
||||
|
||||
```sh
|
||||
cat << EOF
|
||||
Hello World
|
||||
Eof
|
||||
```
|
||||
|
||||
### Correct code:
|
||||
|
||||
```sh
|
||||
cat << EOF
|
||||
Hello World
|
||||
EOF
|
||||
```
|
||||
### Rationale:
|
||||
|
||||
ShellCheck found a here document (`<<`) where the end token is missing. However, the end token appears with different case further down. If this was meant to be the end of the here document, make sure the case matches.
|
||||
|
||||
### Exceptions:
|
||||
|
||||
None. This error is only emitted when the here document is incomplete.
|
||||
|
||||
### Related resources:
|
||||
|
||||
* Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!
|
Reference in New Issue
Block a user