From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Bob Hepple Newsgroups: gmane.emacs.bugs Subject: bug#33158: 26.1; some vc operations on 'src' files result in 'src: -- is not registered' Date: Sat, 27 Oct 2018 09:20:17 +1000 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000137dc7057929f7ad" X-Trace: blaine.gmane.org 1541112812 31290 195.159.176.226 (1 Nov 2018 22:53:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 1 Nov 2018 22:53:32 +0000 (UTC) Bcc: rgm@gnu.org To: rgm@gnu.org, 33158@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 01 23:53:28 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gILqC-00082w-Cm for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Nov 2018 23:53:28 +0100 Original-Received: from localhost ([::1]:46999 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gILsI-0002sB-QI for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Nov 2018 18:55:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gILrT-00024p-OK for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 18:54:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gILkw-0007A1-H2 for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 18:48:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54761) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gILkw-00079c-9j for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 18:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gILkw-0006Vd-6g for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2018 18:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Bob Hepple Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Nov 2018 22:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33158 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33158-submit@debbugs.gnu.org id=B33158.154111243824935 (code B ref 33158); Thu, 01 Nov 2018 22:48:02 +0000 Original-Received: (at 33158) by debbugs.gnu.org; 1 Nov 2018 22:47:18 +0000 Original-Received: from localhost ([127.0.0.1]:59019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gILkD-0006U6-Ob for submit@debbugs.gnu.org; Thu, 01 Nov 2018 18:47:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48480) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gILkB-0006Tl-FY for 33158@debbugs.gnu.org; Thu, 01 Nov 2018 18:47:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gILk5-0006mI-Dx for 33158@debbugs.gnu.org; Thu, 01 Nov 2018 18:47:10 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43088) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gILk5-0006mA-9C for 33158@debbugs.gnu.org; Thu, 01 Nov 2018 18:47:09 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1gILk5-0000xx-5j for 33158@debbugs.gnu.org; Thu, 01 Nov 2018 18:47:09 -0400 Resent-Message-ID: <23515.33388.988263.94603@gnu.org> Resent-Date: Thu, 1 Nov 2018 18:47:08 -0400 Resent-From: Glenn Morris Resent-To: 33158@debbugs.gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=8zfHfvwRKa9KJrKNXO5JhTaF/L2RMQHlMWZF/Pcwm10=; b=ZgdMI5CirmrvTke77D461KXeGa4fKgfw5Tl07YC1hJvP+RkiegNVJQXr64IDv7aN9N Bjz5M/212QjJo7ltLXBe79Q8YEOfPKl5oQDRtIPw4BJ3KzBcP9ETIh7yq6dyPL57vmUD caxE8PhrV/I19d67RqfnOGGJNqas0i2hZUIf/FbB4TSUSGEzGqxixDyg/qAWBsArfBKL 1SxQ18zh2rV+2OKiCJF0W9EArT1hqmVyXtgCG3hQ80OGsNCM0YRWZg+uurPd2u11HA4n 6lsfuBs28cVsjY6HH5qCdhx6bA2uuJhfcuZmDg9J7VAhdSJWmDsfOLBQeQLTyxEsL5Sd R4gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=8zfHfvwRKa9KJrKNXO5JhTaF/L2RMQHlMWZF/Pcwm10=; b=FgswilW8tI70nyXS73ZwEPFrsOY8d+oTR4YCWoglHWkykQ4E2DFYdGnWH33vwBY6e6 hugkLr6r1KT+f4AfiNQQtdDUAYly+4i7Mn+hRD/bDnjiYb13I7299H+gBeVrdQzPdOOt QWH0e3OB4AGcoFx/MaBnzLOPSRGu2tSzQbRld9YyyC8NDuSHYh9wT2MYTOxXMDSFeRM/ uLJ7nwpKiPSn15oy4EpoGBtkCCmTSokSXqNUFwtVOmLzHI2zOSlzJogKz9+Jt9rkp7An u6e9O142iug4N8X/eBvarqhUcidtWu7PN+LWD3j+5GdxPhgFLSWG81EIBdN0VVAe/VKQ h/GQ== X-Gm-Message-State: AGRZ1gIqqftN5H7R1SHoF/e0Wo9yorU7SLqfoT6H6FGLwosK/BAooZAO LwVA2O+VnrTp2RSwYgs3ZyNPVVKggBDy/lB6XRoBCmEi X-Google-Smtp-Source: AJdET5dfZ0RqWAJGXfVQ8EEnnN1uM1lW8inX49QbXE6wznqXnYACBPAZ8rAbmpccTcN2g5sOTBk3Z3BRpJnqhvIgzlg= X-Received: by 2002:a9d:d7:: with SMTP id 23mr3556873otk.90.1540596029420; Fri, 26 Oct 2018 16:20:29 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Bogosity: unsure, spamicity=0.179978, v1.2.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:151923 Archived-At: --000000000000137dc7057929f7ad Content-Type: text/plain; charset="UTF-8" Odd indeed! I'm using the most recent version 1.18 downloaded from gitlab e6acd942 Anyway: $ src cat 2 tamborine.org # works fine but: $ src cat 2 -- tamborine.org src: -- is not registered ... so it looks like a disconnect between the 'src' doco and reality ie a bug in 'src'. I'll raise a bug report with esr. 'src' does not use 'getopt' nor 'optparse' etc - it parses the command line arguments itself. So I _think_ it's falling into one of the nasty edge cases inherent in that approach. I have my workaround - I guess it's up to you if you want to apply it in vc-src.el for other users until esr fixes 'src'. Thanks for your hard work on my favourite editor (since the mid-eighties!) Cheers Bob On Sat, 27 Oct 2018 at 08:46, Glenn Morris wrote: > > This is odd since the "--" was added 4 years ago in baab20d by src's > author, > and http://www.catb.org/~esr/src/src.html says: > > The token "--" tells the command-line interpreter that subcommands, > switches, and revision-specs are done - everything after it is a > filename, even if it looks like a subcommand or revision number. > > --000000000000137dc7057929f7ad Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Odd indeed!

I'm usin= g the most recent version 1.18 downloaded from gitlab e6acd942

Anyway:

$ src cat 2 tamborine.org # works fine but:

$ src cat 2 -- tamborine.org
sr= c: -- is not registered

... so it look= s like a disconnect between the 'src' doco and reality ie a bug in = 'src'. I'll raise a bug report with esr.
'src' does not use 'getopt' nor 'optparse&#= 39; etc - it parses the=20 command line arguments itself. So I _think_ it's falling into one of th= e nasty edge cases inherent in that approach.

I have my workaround - I guess it's up to you if you want to apply it = in vc-src.el for other users until esr fixes 'src'.
=
Thanks for your hard work on my favourite editor (since the = mid-eighties!)


Cheers

Bob

On Sat, 27 Oct 2018 at 08:46, Glenn Morris <rgm@gnu.org> wrote:

This is odd since the "--" was added 4 years ago in baab20d by sr= c's author,
and http://www.catb.org/~esr/src/src.html says:

=C2=A0 =C2=A0 The token "--" tells the command-line interpreter t= hat subcommands,
=C2=A0 =C2=A0 switches, and revision-specs are done - everything after it i= s a
=C2=A0 =C2=A0 filename, even if it looks like a subcommand or revision numb= er.

--000000000000137dc7057929f7ad--