summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2015-03-18 22:09:22 +0000
committerjmc <jmc@openbsd.org>2015-03-18 22:09:22 +0000
commit3b3868be83b0cafffccd0e85e4a3b2e801b65595 (patch)
tree3b4381855ffe97b4848dd691a885d7b60daac9e5
parentRework the virtual memory layout on SRMMU systems (sun4d/sun4m) to use a much (diff)
downloadwireguard-openbsd-3b3868be83b0cafffccd0e85e4a3b2e801b65595.tar.xz
wireguard-openbsd-3b3868be83b0cafffccd0e85e4a3b2e801b65595.zip
improve the description of here documents; prompted by zhuk
-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 \` ,