Re: [RFC] sending errors to stdout under $PAGER
- From
Jeff King <peff@peff.net>
- Date
- Feb 17, 2008, 18:15 UTC
- Message-ID
- <20080217181523.GA4818@coredump.intra.peff.net>
- In-Reply-To
- <7vd4qv1n78.fsf@gitster.siamese.dyndns.org>
On Sun, Feb 17, 2008 at 09:56:27AM -0800, Junio C Hamano wrote:
Show 10 quoted lines
> > Wouldn't it be better/safer to redirect stderr to the pager > > in the first place? > > > > So, instead of the current > > > > foo | less > > use > > foo 2>&1 | less > > I like it. Much nicer. Thanks.
This will also put the stderr of any sub-programs into the pager, which is probably worse if you have, e.g., a chatty external diff program. I don't know if we care enough about that.
-Peff