summaryrefslogtreecommitdiff
path: root/bin/ksh
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2015-03-18 22:09:23 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2015-03-18 22:09:23 +0000
commitb17646c663bbf071454cb32b7e200372043f666a (patch)
tree827596e1743a07927392207ef5b12c831006acf1 /bin/ksh
parentef2075f874133b6cf163ab36e2c42986d3e1dd07 (diff)
improve the description of here documents; prompted by zhuk
Diffstat (limited to 'bin/ksh')
-rw-r--r--bin/ksh/sh.113
1 files changed, 6 insertions, 7 deletions
diff --git a/bin/ksh/sh.1 b/bin/ksh/sh.1
index 26d6c428101..f23a2dac495 100644
--- a/bin/ksh/sh.1
+++ b/bin/ksh/sh.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sh.1,v 1.113 2015/03/18 16:20:05 jmc Exp $
+.\" $OpenBSD: sh.1,v 1.114 2015/03/18 22:09:22 jmc Exp $
.\"
.\" Copyright (c) 2015 Jason McIntyre <jmc@openbsd.org>
.\"
@@ -1512,8 +1512,7 @@ create it.
This form of redirection,
called a
.Em here document ,
-is used to copy the lines from
-.Ar block
+is used to copy a block of lines
to a temporary file until a line matching
.Ar delimiter
is read.
@@ -1524,9 +1523,9 @@ or standard input by default.
The basic format is:
.Bd -unfilled -offset indent
.Oo Ar n Oc Ns << Ns Ar delimiter
-.Ar block
-.Ar block
-.Ar ...
+text
+text
+\&...
.Ar delimiter
.Ed
.Pp
@@ -1534,7 +1533,7 @@ Provided
.Ar delimiter
doesn't contain any quoted characters,
parameter, command, and arithmetic expansions are performed on
-.Ar block ,
+the text block,
and backslashes escape the special meaning of
.Sq $ ,
.Sq \` ,