From 5e9c277f995c517e4403c87e74b758d5b65004f2 Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Mon, 2 Mar 2015 20:06:17 +0000 Subject: tee: generalize the --write-error option to --output-error Adjust commit v8.23-140-gfdd6ebf to add the --output-error option instead of --write-error, and treat open() errors like write() errors. * doc/coreutils.texi (tee invocation): s/write-error/output-error/. * src/tee.c (main): Exit on open() error if appropriate. * tests/misc/tee.sh: Add a case to test open() errors. * NEWS: Adjust for the more general output error behavior. Suggested by Bernhard Voelker. --- doc/coreutils.texi | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'doc') diff --git a/doc/coreutils.texi b/doc/coreutils.texi index d3239a567..6110cecd0 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -13202,29 +13202,29 @@ them. Ignore interrupt signals. @item -p -@itemx --write-error[=@var{mode}] +@itemx --output-error[=@var{mode}] @opindex -p -@opindex --write-error -Select the behavior with write errors on the outputs, +@opindex --output-error +Select the behavior with errors on the outputs, where @var{mode} is one of the following: @table @samp @item warn -Warn on error writing any output, including pipes. +Warn on error opening or writing any output, including pipes. Writing is continued to still open files/pipes. Exit status indicates failure if any output has an error. @item warn-nopipe -Warn on error writing any output, except pipes. +Warn on error opening or writing any output, except pipes. Writing is continued to still open files/pipes. Exit status indicates failure if any non pipe output had an error. This is the default @var{mode} when not specified. @item exit -Exit on error writing any output, including pipes. +Exit on error opening or writing any output, including pipes. @item exit-nopipe -Exit on error writing any output, except pipes. +Exit on error opening or writing any output, except pipes. @end table @end table -- cgit v1.2.3-70-g09d2