From: Junio C Hamano Date: Sun, 17 Feb 2008 18:23:25 GMT Subject: Re: [RFC] sending errors to stdout under $PAGER Message-ID: <7vr6fbzbky.fsf@gitster.siamese.dyndns.org> In-Reply-To: <20080217181523.GA4818@coredump.intra.peff.net> Jeff King writes: > On Sun, Feb 17, 2008 at 09:56:27AM -0800, Junio C Hamano wrote: > >> > 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. We'll soon find out and the change would be a single liner that is very easy to back out, so let's put it in and see what happens ;-).