>>>>> "EB" == Eric Blake <[email protected]> writes:
>> And no fair saying "just save the output" (could be big) "into a file
>> first, and do head(1) or sed(1) on that."
EB> If you have an app that exits noisily on write failures to an early-exit
EB> pipe, your solutions are to quit ignoring SIGPIPE, or to change the
EB> pipeline to consume all of the output instead of exiting early and
EB> causing write failure.
OK, it seems that indeed it would then be best to document:
If you want to make sure no such errors occur on large output,
instead of
$ sort | head
use
$ sort > file; head file
as an _easy to remember_ alternative amongst the many.
And OK put this in some general place, and have the sort, etc. pages
link to it. Thanks.