[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #62586] Warning given every time wget runs: “.netrc:..: unknown tok

From: Tim Ruehsen
Subject: [bug #62586] Warning given every time wget runs: “.netrc:..: unknown token” when a password contains quotes
Date: Mon, 6 Jun 2022 06:15:31 -0400 (EDT)

Follow-up Comment #1, bug #62586 (project wget):

As you mention, there is no standard/spec. And this puts this issue into an
unsolvable state. Too many clients have their own, slightly diverting
implementation. Whatever any client will change, it likely breaks backwards

I looked into netkit and GNU inetutils' ftp command. In both cases, the .netrc
parser allows surrounding double quotes and supports primitive escaping using
\ (the following char is taken as-is). No hint for a support of bash-style

Wget (and nowadays also curl) does basically the same thing (but not 100%

Interestingly, both ftp clients I looked at use a character/stream based
parser. This implies that quoted password can span multiple lines - the only
way to include e.g. a linefeed into the password (\ escaping doesn't allow

Fetchmail (and also wget) uses a line-oriented parser that doesn't allow
linefeed in a password at all. And it uses what you call 'bash-style' quoting
- something that is absolutely unneeded when it comes to embedding quotes in

My conclusion is that it is too late to set up a spec, and that fetchmail is
at least incompatible with other netrc parsers (to say it nicely).


Reply to this item at:


Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]