diff --git a/SC1044.md b/SC1044.md index 5b5d31f..d68db9d 100644 --- a/SC1044.md +++ b/SC1044.md @@ -20,8 +20,10 @@ The `<<` here document (aka heredoc) was not properly terminated. The terminatin Note that you can not put here documents in one liners. For such use cases, use a `<<<` here string: - cat << EOF hello world EOF # Wrong: data and terminator can not be on the same line - cat <<< "hello world" # Correct +```sh +cat << EOF hello world EOF # Wrong: data and terminator can not be on the same line +cat <<< "hello world" # Correct +``` ### Exceptions: @@ -29,4 +31,4 @@ None ### Related resources: -* Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc! \ No newline at end of file +* Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!