Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Re your last sentence, "As a result, it is not ...". Your preceding sentence refers to the body of the here document, not the terminator. The terminator - called the delimiter in man bash - is, as per your quote from man bash, "the delimiter is the result of quote removal on word" Commented May 21, 2015 at 10:54
  • @Peter.O: Correct on both counts. Only backslash-newline escape processing is performed prior to comparing the delimiter (and in this case, that's irrelevant because the quoted backslash inhibits escape processing). Commented May 21, 2015 at 14:12