Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Argument processing with sftp

0 views
Skip to first unread message

Iain Morgan

unread,
Dec 14, 2009, 1:42:02 PM12/14/09
to
Greetings,

One aspect of the recent sftp renovation which I don't recall being
discussed is its command-line argument processing.

In particular, the command-line syntax supports retrieving a file as
follows:

$ sftp hoastA:file1 file2

But it does not support a similar syntax to send a file. In other words,

$ sftp file1 hostA:file2

is not currently supported. Moreover, the following command does not do
what you might expect:

$ sftp hostA:file1 hostB:file2

Instead of transferring a file between hostB and hostA, it retrieves a
file from hostA to the local host and names it hostB:file2.

Are there any plans to addres this part of sftp's command-line syntax in
the near future. Since the stted goal is to make sftp a drop-in
replacement for scp, it would seem that these issues need to be
addressed at some point.

Thanks

--
Iain Morgan
_______________________________________________
openssh-unix-dev mailing list
openssh-...@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

0 new messages