On 2020-01-11 09:07, Thorsten Glaser wrote:
Yes, “command1” is expanded remotely, but you use the quoting rules of the remote shell INSIDE the single quotes for the local POSIX shell to prevent that (just replace all ' with '\'' and you’re set).
It arrives to the remote host with the outer quotes stripped, and the expansion takes place. Perhaps this would work '\'some command\''. Then there should be double-quoting of any single-quote characters inside.
Yuri _______________________________________________ openssh-unix-dev mailing list openssh-unix-dev@xxxxxxxxxxx https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev