OpenSSH 6.6 get -a option not shown in help.

mancha mancha1 at zoho.com
Tue Sep 16 12:41:03 EST 2014


On Mon, Sep 15, 2014 at 10:19:36PM +0400, Loganaden Velvindron wrote:
> On Mon, Sep 15, 2014 at 10:06 PM, Scott Neugroschl <scott_n at xypro.com>
> wrote:
> > OpenSSH 6.6
> >
> > From the sftp command prompt, the help command does not show the f,
> > a, or R options.
> >
> > sftp> help Available commands: [redacted] get [-Ppr] remote [local]
> > Download file
> >
> > Should read
> >
> > get [-afPpRr] remote [local]       Download file
> >
> 
> Thanks. I'm looking into this !
> 

Unless I missed something, attached diff should harmonize things.

Cheers.

--mancha

-------------- next part --------------
--- a/sftp.c
+++ b/sftp.c
@@ -250,9 +250,9 @@
 	    "df [-hi] [path]                    Display statistics for current directory or\n"
 	    "                                   filesystem containing 'path'\n"
 	    "exit                               Quit sftp\n"
-	    "get [-Ppr] remote [local]          Download file\n"
-	    "reget remote [local]		Resume download file\n"
-	    "reput [local] remote               Resume upload file\n"
+	    "get [-afPpRr] remote [local]       Download file\n"
+	    "reget [-fPpRr] remote [local]	Resume download file\n"
+	    "reput [-fPpRr] [local] remote      Resume upload file\n"
 	    "help                               Display this help text\n"
 	    "lcd path                           Change local directory to 'path'\n"
 	    "lls [ls-options [path]]            Display local directory listing\n"
@@ -263,7 +263,7 @@
 	    "lumask umask                       Set local umask to 'umask'\n"
 	    "mkdir path                         Create remote directory\n"
 	    "progress                           Toggle display of progress meter\n"
-	    "put [-Ppr] local [remote]          Upload file\n"
+	    "put [-afPpRr] local [remote]       Upload file\n"
 	    "pwd                                Display remote working directory\n"
 	    "quit                               Quit sftp\n"
 	    "rename oldpath newpath             Rename remote file\n"
--- a/sftp.1
+++ b/sftp.1
@@ -357,7 +357,7 @@
 Quit
 .Nm sftp .
 .It Xo Ic get
-.Op Fl afPpr
+.Op Fl afPpRr
 .Ar remote-path
 .Op Ar local-path
 .Xc
@@ -399,7 +399,9 @@
 flag is specified, then full file permissions and access times are
 copied too.
 .Pp
-If the
+If either the
+.Fl R
+or
 .Fl r
 flag is specified then directories will be copied recursively.
 Note that
@@ -495,7 +497,7 @@
 .It Ic progress
 Toggle display of progress meter.
 .It Xo Ic put
-.Op Fl afPpr
+.Op Fl afPpRr
 .Ar local-path
 .Op Ar remote-path
 .Xc
@@ -538,7 +540,9 @@
 flag is specified, then full file permissions and access times are
 copied too.
 .Pp
-If the
+If either the
+.Fl R
+or
 .Fl r
 flag is specified then directories will be copied recursively.
 Note that
@@ -550,7 +554,7 @@
 Quit
 .Nm sftp .
 .It Xo Ic reget
-.Op Fl Ppr
+.Op Fl fPpRr
 .Ar remote-path
 .Op Ar local-path
 .Xc
@@ -562,7 +566,7 @@
 .Fl a
 flag set.
 .It Xo Ic reput
-.Op Fl Ppr
+.Op Fl fPpRr
 .Op Ar local-path
 .Ar remote-path
 .Xc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20140916/cfe42799/attachment.bin>


More information about the openssh-unix-dev mailing list