cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: patch to print version info on stderr

From: David Byron <DByron_at_everdreamcorp.com>
Date: Tue, 16 Sep 2003 14:24:52 -0700

On Tue Sep 16, 2003 @ 2:03P Gisle Vanem wrote:

> "David Byron" said:
>
> > 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
>
> IMHO this is a kludge. Do we really need more cmdline
> parameters?

I haven't added any command line parameters. --stderr was already there.
All I did was send the output of --version there.

> curl --version 2> foo
>
> (stderr is handle 2 remember). Works on cmd and 4nt shells.

Before my patch, you'd need to redirect stdout since that's where --version
sent it's output.

All the best,

-DB

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-09-16