curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: Curl bug -ID - doubles output

From: David Niklas <doark_at_mail.com>
Date: Fri, 18 Nov 2016 12:48:56 -0500

On Tue, 15 Nov 2016 23:47:38 Ray Satiro <raysatiro_at_yahoo.com> wrote:
> On 11/13/2016 5:13 PM, David Niklas wrote:
> > (Subject is complete bug description.)
> > I looked at the code and hope to tackle this one myself, but I'm not
> > certain how you'd like curl to behave in this circumstance.
> > 1. Keep current (seems stupid).
> > 2. Place error message and exit when both are passed to curl (or -D ==
> > stdout) (theoretically could break a program.)
> > 3. Place warning message when both are passed to curl (or -D ==
> > stdout). 4. Just have curl ignore the -D when it is set to stdout and
> > -I is passed. 5. Require -D when using -I (Bad idea, but included for
> > completeness).
>
> Why is it stupid? It's doing what you asked it to. My vote is for #1.

Ok, I'm the stupid one.
But seriously, who would actually use this "feature"?

Sincerely,
David
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-users
FAQ: https://curl.haxx.se/docs/faq.html
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-11-18