From 5581d2324fdd0370d677e368774e6d40792d4cca Mon Sep 17 00:00:00 2001 From: koalaman Date: Tue, 4 Jul 2017 17:04:17 -0700 Subject: [PATCH] Created SC1042 (markdown) --- SC1042.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 SC1042.md diff --git a/SC1042.md b/SC1042.md new file mode 100644 index 0000000..6ca0183 --- /dev/null +++ b/SC1042.md @@ -0,0 +1,26 @@ +## Found `eof` further down, but not entirely by itself. + +### Problematic code: + +```sh +cat << eof +Hello World +eof -vE +``` + +### Correct code: + +```sh +cat << eof -v E +Hello World +eof +``` +### Rationale: + +Your here document isn't properly terminated. There is a line containing the token you've chosen, but it needs to be on a separate line with no leading or trailing spaces, flags or other characters. + +Make sure the token you've chosen has no leading or trailing characters of any kind, including spaces. Either delete or move them. + +### Exceptions: + +None. \ No newline at end of file