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:
|
||||
|
||||
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:
|
||||
|
||||
|
Reference in New Issue
Block a user