mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Add highlighting to last code-block
@@ -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:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user