curl / Mailing Lists / curl-library / Single Mail


Re: Comments in _netrc

From: Daniel Stenberg <>
Date: Wed, 2 Aug 2017 14:34:09 +0200 (CEST)

On Wed, 2 Aug 2017, Gisle Vanem via curl-library wrote:

> I.e. lib/netc.c ignores the comment char '#'! Can this please be fixed?
> Something like:

Now pushed as a PR to run the CI tests:

I also modified test 130 to verify that it ignores commented lines.

> It's also confusing that '%HOME%/.netrc' is NOT
> supported on Windows. An old issue on Win-9x perhaps?
> It would be great that '%HOME/_netrc' only said:
> include %HOME/.netrc

Yeah, it was always "_netrc" since the dawn of time. I can't remember exactly
why but I think there was some issue that triggered it. There's however a
CURLOPT_NETRC_FILE option that can help.

Received on 2017-08-02