Re: OpenSSH 6.6 get -a option not shown in help.

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

 



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@xxxxxxxxx>
> 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

--- 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

Attachment: pgpiei5NUhn8i.pgp
Description: PGP signature

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

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

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux