Module Name: src
Committed By: simonb
Date: Thu May 9 11:43:27 UTC 2013
Modified Files:
src/bin/sh: sh.1
Log Message:
Document that a here-document can finish at an EOF as well as at the
delimiter.
To generate a diff of this commit:
cvs rdiff -u -r1.109 -r1.110 src/bin/sh/sh.1
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/sh/sh.1
diff -u src/bin/sh/sh.1:1.109 src/bin/sh/sh.1:1.110
--- src/bin/sh/sh.1:1.109 Wed Oct 3 19:37:36 2012
+++ src/bin/sh/sh.1 Thu May 9 11:43:27 2013
@@ -1,4 +1,4 @@
-.\" $NetBSD: sh.1,v 1.109 2012/10/03 19:37:36 wiz Exp $
+.\" $NetBSD: sh.1,v 1.110 2013/05/09 11:43:27 simonb Exp $
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -31,7 +31,7 @@
.\"
.\" @(#)sh.1 8.6 (Berkeley) 5/4/95
.\"
-.Dd August 26, 2012
+.Dd May 9, 2013
.Dt SH 1
.Os
.Sh NAME
@@ -480,9 +480,9 @@ The following redirection is often calle
.Li delimiter
.El
.Pp
-All the text on successive lines up to the delimiter is saved away and
-made available to the command on standard input, or file descriptor n if
-it is specified.
+All the text on successive lines up to the delimiter, or to an EOF, is
+saved away and made available to the command on standard input, or file
+descriptor n if it is specified.
If the delimiter as specified on the initial line is
quoted, then the here-doc-text is treated literally; otherwise, the text is
subjected to parameter expansion, command substitution, and arithmetic