From 09ffec76dd38a83c268725c52158883220b79729 Mon Sep 17 00:00:00 2001 From: koalaman Date: Sat, 8 Jul 2017 15:25:12 -0700 Subject: [PATCH] Updated SC1042 (markdown) --- SC1042.md | 28 +++------------------------- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/SC1042.md b/SC1042.md index 6ca0183..d83789f 100644 --- a/SC1042.md +++ b/SC1042.md @@ -1,26 +1,4 @@ -## Found `eof` further down, but not entirely by itself. + Found 'eof' further down, but not on a separate line. + Close matches include '-eof' (!= 'eof'). -### 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 +See companion error [[SC1041]]. \ No newline at end of file