From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.bugs Subject: bug#22081: 24.5; netrc.el fails parsing authinfo items spread over multiple lines Date: Tue, 08 Dec 2015 09:35:22 +0000 Message-ID: <86io492sh1.fsf@gmail.com> References: <87fuzjvdp5.fsf@lifelogs.com> <87fuzjvdp5.fsf@lifelogs.com> <8737vgwjf9.fsf_-_@lifelogs.com> <86d1uiqrbe.fsf@gmail.com> <87twnuunts.fsf@lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1449567684 12649 80.91.229.3 (8 Dec 2015 09:41:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Dec 2015 09:41:24 +0000 (UTC) To: 22081@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 08 10:41:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a6Eli-0002UH-Nl for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Dec 2015 10:41:10 +0100 Original-Received: from localhost ([::1]:58713 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6Elh-0001Av-Rn for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Dec 2015 04:41:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34432) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6Eld-00018X-UQ for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 04:41:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6Ela-0006t3-Ns for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 04:41:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52617) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6Ela-0006sz-LO for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 04:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a6Ela-0003J4-DY for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 04:41:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Andy Moreton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Dec 2015 09:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22081 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144956763412638 (code B ref -1); Tue, 08 Dec 2015 09:41:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Dec 2015 09:40:34 +0000 Original-Received: from localhost ([127.0.0.1]:42325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a6El7-0003Hl-3R for submit@debbugs.gnu.org; Tue, 08 Dec 2015 04:40:34 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52430) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a6Ekm-0003Gy-Kr for submit@debbugs.gnu.org; Tue, 08 Dec 2015 04:40:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6Ekl-0006lq-GB for submit@debbugs.gnu.org; Tue, 08 Dec 2015 04:40:12 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:33721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6Ekl-0006lm-Dn for submit@debbugs.gnu.org; Tue, 08 Dec 2015 04:40:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6Ekk-0000k9-DA for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 04:40:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6Ekh-0006kt-79 for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 04:40:10 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:58858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6Ekh-0006iv-0i for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 04:40:07 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a6Eke-0000oV-Em for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 10:40:04 +0100 Original-Received: from 82-69-64-228.dsl.in-addr.zen.co.uk ([82.69.64.228]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Dec 2015 10:40:04 +0100 Original-Received: from andrewjmoreton by 82-69-64-228.dsl.in-addr.zen.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Dec 2015 10:40:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 82-69-64-228.dsl.in-addr.zen.co.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (windows-nt) Cancel-Lock: sha1:cs4h1T1YzydE0PoORegoZYpU5MY= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:109753 Archived-At: On Mon 07 Dec 2015, Ted Zlatanov wrote: > On Mon, 07 Dec 2015 14:14:13 +0000 Andy Moreton wrote: > > AM> On Sat 05 Dec 2015, Ted Zlatanov wrote: >>> On Fri, 04 Dec 2015 14:25:00 +0000 Andy Moreton wrote: >>> My more important point was that there's no standard (or library) for >>> parsing netrc files. In particular, quoting is not specified as I >>> mentioned. The BSD spec is ambiguous and allowing multi-line entries >>> would not serve any practical purpose. > > AM> The spec clearly defines that tokens are separated with SPACE TAB or > AM> NEWLINE, which seems unambiguous to me. > > Without a quoting standard, it's not clear whether strings inside quotes > can be multiline and whether the newline itself can be escaped. The original spec is archaic - there is no quoting standard, only tokens separated by whitespace. As such, a quote is simply another character. > AM> Disallowing NEWLINE as a token separator means you are not parsing an > AM> extension of the existing format, but something incompatible with it. > AM> That's fine as it offers useful features, but it should use a different > AM> file name to make it clear that it is not the same format. > > Fortunately `auth-sources' defaults to ~/.authinfo and ~/.authinfo.gpg > before ~/.netrc right now. Indeed. AndyM