emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 0ad1c0d: * lisp/net/tramp.el (tramp-handle-make-process): Han


From: Stefan Monnier
Subject: Re: master 0ad1c0d: * lisp/net/tramp.el (tramp-handle-make-process): Handle shell commands.
Date: Fri, 18 Dec 2020 11:28:28 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> BTW, what would go wrong if you did
>> (setq command (mapcar #'tramp-shell-quote-argument command))?
>
> Tried that, didn't work. Imagine, you call "M-x rgrep" on a remote
> machine. This ends up in a make-process call with :command
[...]
> As you see, three arguments "/bin/sh" "-c" and "find ...". If I do your
> proposal, Tramp would send finally

I don't understand: your code leaves "sh" and "-c" and passes the third
through `tramp-shell-quote-argument`, but that should give the exact
same result as passing all three through `tramp-shell-quote-argument`
since "sh" and "-c" are both left unchanged by `tramp-shell-quote-argument`.

What am I missing?


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]