blob: f5bb26787c11e981aad9c0a1d8c5ab38051d2be2 (plain
.TH OII 1df "June 2017" "Manual page for oii"
\- run a command on input only if there's at least one byte of input
CMD [ARGS ...] < file
CMD [ARGS ...]
Run the given program passing in stdin but only if at least one byte of input
is actually received, rather like the -E switch to mail(1) behaves on
bsd-mailx. If no input is received, exit silently with an error status.
It's slow, and doesn't work as a pipe. The entire input is written to disk and
then tested for filesize before being re-emitted. There's almost certainly a
more efficient way to do this while still remaining byte-safe.
Tom Ryder <email@example.com>