cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Parsing in src/tool_parsecfg.c

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 5 Dec 2013 23:35:44 +0100 (CET)

On Thu, 5 Dec 2013, Gisle Vanem wrote:

> Seems I overlooked the strictness on '--'. Just dropping those from my
> _curlrc,
> all works as before. But I fail to understand the rationale of this change.
> How can:
> option = param
> and
> --option = param
>
> be ambiguous?

I mailed about it here: http://curl.haxx.se/mail/archive-2013-11/0010.html

... and the commit that did the change is here:
https://github.com/bagder/curl/commit/0db811b69b2d5

The reason for the change was to make the config parser better at parsing
options exactly as they are used on the command line. The problematic option
in this case was the use of "-u :" ie just a single colon as a paramter to -u.

I'll admit I was kind of hoping not that many users would have such a config
file in use, but you've just proved that at least one did...

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-12-05