cURL / Mailing Lists / curl-users / Single Mail

curl-users

patch to print version info on stderr

From: David Byron <DByron_at_everdreamcorp.com>
Date: Tue, 16 Sep 2003 12:19:32 -0700

Please consider this patch to print version info on stderr, and to make it
possible to redirect this to a file. I'm working in Windows land and it's a
bit of struggle to deal with redirecting output, etc. without this. With
this patch

$ curl --stderr foo --version

will now put the version info in foo.

Note that

$ curl --version --stderr foo

will not.

main.c is patched against 1.197. If it's more likely to make it as a patch
against 1.198 please let me know and I'll do it. runtests.pl is a patch
against 1.91. Same question here as it's not the current rev. With these
patches, all the tests that previously passed still pass for me.

I think this patch also paves the way for reporting command line errors on a
redirected stderr instead of stderr itself which would also be useful for
me. If other folks are interested in this, it will happen faster.

Thanks much.

-DB

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

Received on 2003-09-16