Add highlighting to last code-block

John Gardner
2021-12-22 19:42:52 +11:00
parent 1b34fb15b1
commit 1f4b2671d1

@@ -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: 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 ```sh
cat <<< "hello world" # Correct cat << EOF hello world EOF # Wrong: data and terminator can not be on the same line
cat <<< "hello world" # Correct
```
### Exceptions: ### Exceptions:
@@ -29,4 +31,4 @@ None
### Related resources: ### Related resources:
* Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc! * Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!