Created SC1118 (markdown)

koalaman
2017-07-08 14:27:58 -07:00
parent 58e4155f97
commit 93ff683715

28
SC1118.md Normal file

@@ -0,0 +1,28 @@
## Delete whitespace after the here-doc end token.
### Problematic code:
"▭" below indicates an otherwise invisible space:
```sh
cat << "eof"
Hello
eof▭
```
### Correct code:
```sh
cat << "eof"
Hello
eof
```
### Rationale:
The end token of your here document has trailing whitespace. This is invisible to the naked eye, but shells do not accept it.
Remove the trailing whitespace.
### Exceptions:
None.