summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2023-02-27 18:07:06 +0000
committerPádraig Brady <P@draigBrady.com>2023-02-28 14:02:42 +0000
commitfb757fd7d9b82284be50c10e0e6ce2d6e66b70af (patch)
tree9f6ac0cbf71e407dd237f4426e4a2a29d6e4f3e3 /src
parentb1376bb829be9147b5699fff637529378b02f758 (diff)
downloadcoreutils-fb757fd7d9b82284be50c10e0e6ce2d6e66b70af.tar.gz
doc: tee -p: clarify operation
* src/tee.c (usage): Change from describing one (non pipe) aspect to the more general point of being the option to use if working with pipes, and referencing the more detailed info below. * doc/coreutils.texi (tee invocation): s/standard/appropriate/ since the standard operation with pipes is to exit immediately upon write error. s/early/immediately/ as it's ambiguous as to what "early" is in relation to.
Diffstat (limited to 'src')
-rw-r--r--src/tee.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tee.c b/src/tee.c
index c69ea9133..e328e6f04 100644
--- a/src/tee.c
+++ b/src/tee.c
@@ -96,7 +96,7 @@ Copy standard input to each FILE, and also to standard output.\n\
-i, --ignore-interrupts ignore interrupt signals\n\
"), stdout);
fputs (_("\
- -p diagnose errors writing to non pipes\n\
+ -p operate in a more appropriate MODE with pipes.\n\
--output-error[=MODE] set behavior on write error. See MODE below\n\
"), stdout);
fputs (HELP_OPTION_DESCRIPTION, stdout);
@@ -109,6 +109,7 @@ MODE determines behavior with write errors on the outputs:\n\
exit exit on error writing to any output\n\
exit-nopipe exit on error writing to any output not a pipe\n\
The default MODE for the -p option is 'warn-nopipe'.\n\
+With \"nopipe\" MODEs, exit immediately if all outputs become broken pipes.\n\
The default operation when --output-error is not specified, is to\n\
exit immediately on error writing to a pipe, and diagnose errors\n\
writing to non pipe outputs.\n\