Subject: Re: bug#24620: 26.0.50; In dired: 'dired-do-compress-to' fails when filenames cotains space characters

From: Noam Postavsky <[email-masked]>
Date: Thu, 27 Oct 2016 14:51:15 -0400

On Thu, Oct 27, 2016 at 2:39 PM, José L. Doménech
<[email-masked]> wrote:
> I am getting a "replace-regexp-in-string: Invalid use of ‘\’ in replacement text"
> error using 'shell-quote-argument' on this case.
>
> It seems that 'shell-quoted-argument' is adding double '\', that is,
> '\\', in front of the spaces instead of surrounding the argument with quotes.
>
> And 'replace-match' which is called by 'replace-regexp-in-string' for the parameter
> substitution ("%i", "%o") in the function 'dired-do-compress-to' doesn't like it.

Does passing non-nil for the LITERAL parameter to replace-regexp-in-string help?