From 5db6d6b37e78bc2f5779e85bd56ca10f0a251488 Mon Sep 17 00:00:00 2001 From: pancho horrillo Date: Thu, 13 Jun 2019 08:45:17 +0200 Subject: [PATCH] README.md: clarify here-doc reference and syntax --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 54ba822..a24c3bc 100644 --- a/README.md +++ b/README.md @@ -109,15 +109,15 @@ Unless you're a hardcore Perl hacker, you'll probably need to write your stuff over more than one line. Don't worry, we need to write several lines, too. Bash, in its magnificent -UNIX® style, provides us with the HERE doc mechanism that we can leverage -precisely for this purpose. +UNIX® style, provides us with the +[here-documents](https://www.gnu.org/software/bash/manual/bash.html#Here-Documents) +mechanism that we can leverage precisely for this purpose. Let's write a `multiline.pow` file with the following content: ```bash -kapow route add /log_and_love - <<-'EOF' -echo "[$(date)] and stuff" >> stuff.log -echo love | response /body + kapow route add /log_and_love - <<- 'EOF' + echo love | response /body EOF ```