diff options
author | Pádraig Brady <P@draigBrady.com> | 2023-02-27 18:07:06 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2023-02-28 14:02:42 +0000 |
commit | fb757fd7d9b82284be50c10e0e6ce2d6e66b70af (patch) | |
tree | 9f6ac0cbf71e407dd237f4426e4a2a29d6e4f3e3 /src | |
parent | b1376bb829be9147b5699fff637529378b02f758 (diff) | |
download | coreutils-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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\ |