Re: [coreutils] [PATCH] head: optionally indicate underrun of set limit
From:
Stefan Tomanek
Subject:
Re: [coreutils] [PATCH] head: optionally indicate underrun of set limit
Date:
Tue, 23 Nov 2010 17:24:55 +0100
User-agent:
Mutt/1.5.20 (2009-06-14)
Dies schrieb Stefan Tomanek (address@hidden):
> It is often convinient to detect whether head has in fact printed the
> requested number of lines or if EOF was reached before reaching that
> point. This patch adds the option --indicate-underrun, which makes
> "head" exit with a status of 4 instead of 0 if no more data could be
> read from its input.
Any thoughts about this change? It's a rather small patch, but would
be quite useful (at least for me).