[issue2541] pager redirects error messages to stdout and always sets exit code 0

Thomas Arendsen Hein bugs at mercurial.selenic.com
Wed Dec 8 10:17:53 CST 2010


New submission from Thomas Arendsen Hein <thomas at intevation.de>:

Mercurial 1.7.2 (and 1.6 and default):

$ hg --config extensions.pager= cat foobarbaz
yields exit code 0 and appending 2>foo would not write the error message
to file foo

$ hg --config extensions.pager=\! cat foobarbaz
(or just "hg cat foobarbaz" if no pager configured)
does not have above problems.

What should be done here?
Should the pager be used if there is an error?

----------
messages: 14603
nosy: ThomasAH, wilde
priority: bug
status: unread
title: pager redirects error messages to stdout and always sets exit code 0
topic: pager

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2541>
____________________________________________________


More information about the Mercurial-devel mailing list