diff --git a/SC1042.md b/SC1042.md index d83789f..15e1690 100644 --- a/SC1042.md +++ b/SC1042.md @@ -1,4 +1,22 @@ - Found 'eof' further down, but not on a separate line. - Close matches include '-eof' (!= 'eof'). +# Close matches include '-eof' (!= 'eof'). -See companion error [[SC1041]]. \ No newline at end of file +## Problematic code: + +```bash +#!/bin/bash +cat <<-eof +Hello World +-eof +``` + +## Correct code: + +```bash +#!/bin/bash +cat <<-eof +Hello World +eof +``` + +## Rationale: +See companion error [[SC1041]]. This error occurs at the same time it. \ No newline at end of file