aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-11-01 11:05:30 +0200
committerArnold D. Robbins <arnold@skeeve.com>2013-11-01 11:05:30 +0200
commitb3bb8a2bac657b6095e7a63c385c334e4329629c (patch)
treea27af8ab93435ba5a4e272489adcce32fddbd018
parent8d6b9ebe7983bd45dc28819c40e2acdafcde2a70 (diff)
parent62c42c359af9b08180d25d3075a1b8ca5d52dee6 (diff)
downloadegawk-b3bb8a2bac657b6095e7a63c385c334e4329629c.tar.gz
egawk-b3bb8a2bac657b6095e7a63c385c334e4329629c.tar.bz2
egawk-b3bb8a2bac657b6095e7a63c385c334e4329629c.zip
Merge branch 'gawk-4.1-stable'
-rw-r--r--ChangeLog5
-rw-r--r--builtin.c5
-rw-r--r--doc/ChangeLog4
-rw-r--r--doc/gawk.texi1
-rw-r--r--doc/gawktexi.in1
5 files changed, 16 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f4640979..90aa7551 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-10-31 Arnold D. Robbins <arnold@skeeve.com>
+
+ * builtin.c (efwrite): If write error to stdout is EPIPE,
+ die silently. Thanks to Hermann Peifer for helping find this.
+
2013-10-22 Arnold D. Robbins <arnold@skeeve.com>
Revise error messages when writing to standard output or standard
diff --git a/builtin.c b/builtin.c
index 4f1914f4..dae93831 100644
--- a/builtin.c
+++ b/builtin.c
@@ -125,6 +125,11 @@ efwrite(const void *ptr,
return;
wrerror:
+ /* die silently on EPIPE to stdout */
+ if (fp == stdout && errno == EPIPE)
+ gawk_exit(EXIT_FATAL);
+
+ /* otherwise die verbosely */
fatal(_("%s to \"%s\" failed (%s)"), from,
rp ? rp->value : _("standard output"),
errno ? strerror(errno) : _("reason unknown"));
diff --git a/doc/ChangeLog b/doc/ChangeLog
index 98919ca6..a0cbfb13 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -1,3 +1,7 @@
+2013-10-31 Arnold D. Robbins <arnold@skeeve.com>
+
+ * gawktexi.in: Add @shorttitlepage command.
+
2013-10-25 Arnold D. Robbins <arnold@skeeve.com>
* gawktexi.in (Contributors): Update with more info.
diff --git a/doc/gawk.texi b/doc/gawk.texi
index e1aeefc5..b651aa9c 100644
--- a/doc/gawk.texi
+++ b/doc/gawk.texi
@@ -194,6 +194,7 @@ supports it in developing GNU and promoting software freedom.''
@c during editing and review.
@setchapternewpage odd
+@shorttitlepage @value{TITLE}
@titlepage
@title @value{TITLE}
@subtitle @value{SUBTITLE}
diff --git a/doc/gawktexi.in b/doc/gawktexi.in
index 2a6ea38a..9c30446e 100644
--- a/doc/gawktexi.in
+++ b/doc/gawktexi.in
@@ -189,6 +189,7 @@ supports it in developing GNU and promoting software freedom.''
@c during editing and review.
@setchapternewpage odd
+@shorttitlepage @value{TITLE}
@titlepage
@title @value{TITLE}
@subtitle @value{SUBTITLE}