Skip to content

Files

Latest commit

 

History

History
31 lines (20 loc) · 521 Bytes

SC1118.md

File metadata and controls

31 lines (20 loc) · 521 Bytes

Pattern: Whitespace after the here-doc end token

Issue: -

Description

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.

Example of incorrect code:

"▭" below indicates an otherwise invisible space:

cat << "eof"
Hello
eof▭   

Example of correct code:

cat << "eof"
Hello
eof

Further Reading