Subject: Re: bug#32304: 27.0.50; tramp-tests issue with double slash

From: Michael Albinus <[email-masked]>
Date: Mon, 30 Jul 2018 10:26:43 +0200

Eli Zaretskii <[email-masked]> writes:

Hi Eli,

> Can you tell how binding system-type was supposed to solve this?

Some functions behave differently depending the system type Emacs is
running on. See for example `shell-quote-argument':

(shell-quote-argument "String with quotation mark \"")

=> "String\\ with\\ quotation\\ mark\\ \\\"" on `gnu/linux'.
=> "^\"String with quotation mark \\^\"^\"" on `windows-nt'

Often, Tramp needs the non-windows kind of result for the remote
host. So it is a common technique in Tramp to force this with
"(let ((system-type 'not-windows)) ...)".

Unfortunately, it doesn't work with `substitute-in-file-name'.  I will
look for another solution.

Best regards, Michael.