diff options
author | Pádraig Brady <P@draigBrady.com> | 2015-03-02 20:06:17 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2015-03-04 13:24:21 +0000 |
commit | 5e9c277f995c517e4403c87e74b758d5b65004f2 (patch) | |
tree | 2ce8a8cfa4224d04c841c6ef21a2938078ab2107 /doc | |
parent | 69410690b8b9838b190c1eaf7d0fa9634e991903 (diff) | |
download | coreutils-5e9c277f995c517e4403c87e74b758d5b65004f2.tar.xz |
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.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/coreutils.texi | 14 |
1 files changed, 7 insertions, 7 deletions
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 |