# Literal Here Doc

When shell encounters the syntax `<< 'delimiter'` or `<< "delimiter"`, it starts creating a multi-line buffer using these rules:

1. A line containing exactly `delimiter` ends the contents
2. Escape sequences are **not** expanded (e.g., `\t` is not translated into a literal `TAB`)
3. Variables are **not** expanded (e.g., `$foo` remains `$foo`)
4. Command substitutions are **not** performed (e.g., `$(date)` and `` `date` `` remain unchanged)

The buffer created is sent as `stdin` to the program of your choice. For example:

```
1 #!/bin/sh
2 cat << 'EOF'
3 $bird $(is) `\t\h\e` ${word}
4 EOF
```

Produces:

```
$bird $(is) `\t\h\e` ${word}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://freebsdfrau.gitbook.io/serious-shell-programming/basics/here-documents/literal-here-doc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
