all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Andy Moreton <andrewjmoreton@gmail.com>
Cc: 32304@debbugs.gnu.org
Subject: bug#32304: 27.0.50; tramp-tests issue with double slash
Date: Tue, 31 Jul 2018 22:57:53 +0200	[thread overview]
Message-ID: <87sh3zi0mm.fsf@gmx.de> (raw)
In-Reply-To: <vz14lgfxy39.fsf@gmail.com> (Andy Moreton's message of "Tue, 31 Jul 2018 15:46:02 +0100")

Andy Moreton <andrewjmoreton@gmail.com> writes:

Hi Andy,

> POSIX specifies that "//" is handled in an implementation defined
> manner, so Cygwin and Windows are not really special.
>
> See POSIX section 4.13 Pathname Resolution:
>
>     A pathname consisting of a single <slash> shall resolve to the root
>     directory of the process. A null pathname shall not be successfully
>     resolved. If a pathname begins with two successive <slash> characters,
>     the first component following the leading <slash> characters may be
>     interpreted in an implementation-defined manner, although more than two
>     leading <slash> characters shall be treated as a single <slash>
>     character.

But the Emacs implementation handles only Cygwin and MS Windows as
special. This is POSIX conform, because it declares this as
implementation specific.

The question is, whether Tramp should follow this. It does

(substitute-in-file-name "/ssh::/a///b") => "/b"

Maybe, it shall return on Cygwin and MS-Windows

(substitute-in-file-name "/ssh::/a///b") => "//b"

Don't know. Is this too sophisticated?

Best regards, Michael.





  reply	other threads:[~2018-07-31 20:57 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-29 15:54 bug#32304: 27.0.50; tramp-tests issue with double slash Ken Brown
2018-07-29 16:27 ` Michael Albinus
2018-07-29 16:47   ` Ken Brown
2018-07-29 16:55     ` Michael Albinus
2018-07-29 17:00       ` Ken Brown
2018-07-30 10:43     ` Michael Albinus
2018-07-30 12:17       ` Ken Brown
2018-07-30 14:45         ` Eli Zaretskii
2018-07-30 20:50           ` Michael Albinus
2018-07-31  2:34             ` Eli Zaretskii
2018-07-31  5:00               ` Michael Albinus
2018-08-08 13:48               ` Michael Albinus
2018-08-08 14:35                 ` Eli Zaretskii
2018-08-08 14:42                   ` Eli Zaretskii
2018-08-08 18:06                     ` Michael Albinus
2018-08-09 12:24                       ` Michael Albinus
2018-08-09 15:18                         ` Eli Zaretskii
2018-08-10  7:27                           ` Michael Albinus
2018-08-08 15:26                   ` Michael Albinus
2018-08-08 15:57                     ` Eli Zaretskii
2018-07-31  4:58         ` Michael Albinus
2018-07-29 17:26   ` Eli Zaretskii
2018-07-30  8:26     ` Michael Albinus
2018-07-31 14:46   ` Andy Moreton
2018-07-31 20:57     ` Michael Albinus [this message]
2018-07-31 22:07       ` Ken Brown
2018-08-01 20:51         ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sh3zi0mm.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=32304@debbugs.gnu.org \
    --cc=andrewjmoreton@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.