Why does rsync believe it knows more about the use of the token to the left
of the colon than the program which will be used as the remote connection?

I have a script called sshto with accepts targets like this:

  host1!host2!host3

and constructs the requisite ssh ProxyCommand options to do a multihop
ssh to host3 to run a command. Very useful if connecting to firewalled
nonroutable hosts or to take a particular route through a network.

It is a particular joy to run:

  rsync -e sshto foo host1!host2!host3:bah

and have things "just work".

So here I am attempting to deposit a kit onto a newly installed
nonroutable machine:

  sshto cameron@accessiblehost!root@newhost blah

which works just fine. But if I call rsync with this:

  rsync -e sshto -aH kit/ cameron@accessiblehost!root@newhost:kit/

what it invokes is:

  sshto -l cameron@accessiblehost!root newhost rsync .....

Since sshto is my own tool I can probably have it cope with this
mangling of my target string into "-l foo bah", and undo it.

But WHY does rsync believe this is desirable, or even necessary?

Cheers,
-- 
Cameron Simpson <c...@zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/

If NT is the answer, you didn't understand the question.        - Peter Blake
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to