[EMAIL PROTECTED] (Edgar Gonçalves) writes:
> This morning, Matthieu Moy wrote:
>> Stefan Reichör <[EMAIL PROTECTED]> writes:
>>
>>>> (replace-regexp-in-string "\""
>>>> ""
>>>> (mapconcat 'shell-quote-argument
>>>> (cons executable
>>>> (delq nil list-args))
>>>> " "))))
>>>
>>> Shouldn't the replacement string (after replace-regexp-in-string) be "\\""
>>> instead of "\""?
>>
>> Indeed, in the mail I received, it _was_ "\\"" !
>>
>> https://mail.gna.org/public/xtla-el-dev/2006-03/msg00071.html
>>
>> Probably your Gnus or someone has eaten the third '\' ...
>
> Or perhaps my sight alone... My bad, I've been using the 3 '\'s and a quote
> regexp, all along! Sorry for the confusion...
So that is really strange now.
The third \ in Matthieu's mail is gone also.
Edgar could you please try the function below (three \):
(defun dvc-build-dvc-command (dvc list-args)
"Build a shell command to run DVC with args LIST-ARGS.
DVC can be one of 'baz, 'xhg, ..."
(let* ((executable (dvc-variable dvc "executable"))
(cmd (mapconcat 'shell-quote-argument
(cons executable
(delq nil list-args))
" ")))
(when (eq system-type 'windows-nt)
(setq cmd (replace-regexp-in-string "\\\"" "" cmd)))
cmd))
If it works, I will commit it to my tree.
Stefan.
_______________________________________________
Xtla-el-dev mailing list
[email protected]
https://mail.gna.org/listinfo/xtla-el-dev