Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/sh Document that a here-document can finish at an EOF as...
details: https://anonhg.NetBSD.org/src/rev/37245cd8cd4b
branches: trunk
changeset: 786758:37245cd8cd4b
user: simonb <simonb%NetBSD.org@localhost>
date: Thu May 09 11:43:27 2013 +0000
description:
Document that a here-document can finish at an EOF as well as at the
delimiter.
diffstat:
bin/sh/sh.1 | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (31 lines):
diff -r 0cf92638516f -r 37245cd8cd4b bin/sh/sh.1
--- a/bin/sh/sh.1 Thu May 09 07:12:59 2013 +0000
+++ b/bin/sh/sh.1 Thu May 09 11:43:27 2013 +0000
@@ -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 @@
.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
Home |
Main Index |
Thread Index |
Old Index