Re: [PATCH] Add contrib/credentials/netrc with GPG support, try #2
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:56:03
Ted Zlatanov [off-list ref] writes:
On Mon, 04 Feb 2013 16:15:47 -0800 Junio C Hamano [off-list ref] wrote: JCH> Ted Zlatanov [off-list ref] writes:quoted
quoted
- do you want to support backslashed newlines?JCH> What for? netrc/authinfo is not a line oriented file format at all, JCH> and JCH> machine k.org JCH> login me JCH> password mysecret JCH> is a single entry; you do not need backslash at the end of any line. Hmm. The parser I implemented only does single-line parsing, and I misunderstood the format to be single-line (partly because I have never seen anyone using the multi-line format you show). Looking at Net::Netrc more carefully, it seems that the "machine" token is what defines an entry, so a new entry starts with a new line that contains a "machine" token. Is that acceptable and does it match your understanding of the format? It matches Net::Netrc, at least.
I thought I've given a more concrete outline than "I'll read Net::Netrc and do whatever I think it does" in a separate message. It would be better to read "man netrc" carefully at least once ;-)