Document that a here-document can finish at an EOF as well as at the

delimiter.
This commit is contained in:
simonb 2013-05-09 11:43:27 +00:00
parent 6fec03973c
commit 3a5cb7b1be
1 changed files with 5 additions and 5 deletions

View File

@ -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 called a
.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