[darcs-devel] [issue1655] warnings should go to stderr
Zooko
bugs at darcs.net
Sat Oct 24 15:49:15 UTC 2009
New submission from Zooko <zooko at zooko.com>:
I have a tool -- http://allmydata.org/trac/darcsver/browser/README.txt -- which
invokes darcs and parses the output. Things are easier for tools like this if
stdout never has anything but the expected data, i.e. when you invoke "darcs
changes --xml" stdout either has nothing or has some changes in XML format.
Exceptional messages, warnings, metadata, etc, should go to stderr. Apparently
with the current darcs trunk, the warning about crcs goes to stdout:
HACL yukyuk:~/playground/tailor$ darcs changes --xml-output --from-tag=^tailor
1>/dev/null
darcs: Couldn't find a tag matching "tag-name ^tailor"
HACL yukyuk:~/playground/tailor$ darcs changes --xml-output --from-tag=^tailor
2>/dev/null
Warning: CRC errors found. These are probably harmless but should be repaired.
See 'darcs gzcrcs --help' for more information.
----------
messages: 9020
nosy: darcs-devel, dmitry.kurochkin, zooko
status: unknown
title: warnings should go to stderr
__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1655>
__________________________________
More information about the darcs-devel
mailing list