From 1f4b2671d1ccb010ebe3a6814ac17f5b5ec5e630 Mon Sep 17 00:00:00 2001 From: John Gardner Date: Wed, 22 Dec 2021 19:42:52 +1100 Subject: [PATCH] Add highlighting to last code-block --- SC1044.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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!