Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: [PATCHv2] git-send-email: add ~/.authinfo parsing

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:55:57

Possibly related (same subject, not in this thread)

Michal Nazarewicz [off-list ref] writes:
quoted
It is rather strange to require a comma-separated-values parser to
read a file format this simple, isn't it?
I was worried about spaces in password.  CVS should handle such case
nicely, whereas simple split won't.  Nonetheless, I guess that in the
end this is not likely enough to add the dependency.
But .netrc/.authinfo format separates its entries with SP, HT, or
LF.  An entry begins with "machine <remote-hostname>" token pair.

split(/\s+/) will not work for an entry that span multiple lines but
CSV will not help, either.

Is it bad to use Net::Netrc instead?  This looks like exactly the
use case that module was written for, no?
quoted
Perhaps you can convert at least some popular ones yourself?  After
all, the user may be using an _existing_ .authinfo/.netrc that she
has been using with other programs that do understand symbolic port
names.  Rather than forcing all such users to update their files,
the patch can work a bit harder for them and the world will be a
better place, no?
Parsing /etc/services added.
Hmph.  I would have expected to see getservbyname.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help