summaryrefslogtreecommitdiff
path: root/usr.bin/ftp/ftp.1
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2008-07-08 21:07:58 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2008-07-08 21:07:58 +0000
commit66a9ee29034eff1ef97bd24b19f4535c46d34b39 (patch)
tree77b34a49e6173e9b4c9f16116a58c71b195c422f /usr.bin/ftp/ftp.1
parent7a3d395c69db3c8452efe68ea465fcf6112fd974 (diff)
- add support for recursive transfers (but not for floppies), e.g.
'mget -cr 4.*' would recursively fetch (-r), and resume the previous transfers (-c) of 4.X release directories uses local matching (fnmatch), but only for recursive transfers. current behavior is not changed in any way. - while here, ifndef SMALL debugging stuff, this saves some space, for floppies - some debugging code was enabled for non-debugging mode, checks assume debug is set to zero, but it's not initially set - all "Confirm with" prompts are forced, remove redundant argument - fix usage: -C and -c are not available for SMALL discussed a year ago w/ pyr@ looks good to millert@ previous version looked good to pyr@ man page tweaks & ok jmc@
Diffstat (limited to 'usr.bin/ftp/ftp.1')
-rw-r--r--usr.bin/ftp/ftp.141
1 files changed, 28 insertions, 13 deletions
diff --git a/usr.bin/ftp/ftp.1 b/usr.bin/ftp/ftp.1
index 7471497603e..f817cf1d2fc 100644
--- a/usr.bin/ftp/ftp.1
+++ b/usr.bin/ftp/ftp.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ftp.1,v 1.70 2008/06/25 18:07:00 martynas Exp $
+.\" $OpenBSD: ftp.1,v 1.71 2008/07/08 21:07:57 martynas Exp $
.\" $NetBSD: ftp.1,v 1.22 1997/08/18 10:20:22 lukem Exp $
.\"
.\" Copyright (c) 1985, 1989, 1990, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)ftp.1 8.3 (Berkeley) 10/9/94
.\"
-.Dd $Mdocdate: June 25 2008 $
+.Dd $Mdocdate: July 8 2008 $
.Dt FTP 1
.Os
.Sh NAME
@@ -557,7 +557,7 @@ on the remote machine.
A synonym for
.Ic mls .
.It Xo Ic mget
-.Op Fl c
+.Op Fl cr
.Ar remote-files
.Xc
Expand the
@@ -566,11 +566,6 @@ on the remote machine
and do a
.Ic get
for each file name thus produced.
-If the
-.Fl c
-flag is specified, then
-.Ic reget
-is used instead for the partially transferred files.
See
.Ic glob
for details on the filename expansion.
@@ -585,6 +580,19 @@ which can be changed with
.Ql lcd directory ;
new local directories can be created with
.Ql "\&! mkdir directory" .
+.Pp
+If the
+.Fl c
+flag is specified then
+.Ic reget
+is used instead of
+.Ic get .
+If the
+.Fl r
+flag is specified,
+.Nm
+recursively descends the directory tree,
+transferring all files and directories.
.It Ic mkdir Ar directory-name
Make a directory on the remote machine.
.It Ic mls Ar remote-files local-file
@@ -621,11 +629,6 @@ Expand wild cards in the list of local files given as arguments
and do a
.Ic put
for each file in the resulting list.
-If the
-.Fl c
-flag is specified, then
-.Ic reput
-is used instead for the partially transferred files.
See
.Ic glob
for details of filename expansion.
@@ -634,6 +637,13 @@ Resulting file names will then be processed according to
and
.Ic nmap
settings.
+.Pp
+If the
+.Fl c
+flag is specified then
+.Ic reput
+is used instead of
+.Ic put .
.It Ic msend Ar local-files
A synonym for
.Ic mput .
@@ -1638,3 +1648,8 @@ to and from
.Bx 4.2
servers using the ASCII type.
Avoid this problem by using the binary image type.
+.Pp
+In the recursive mode of
+.Ic mget ,
+files and directories starting with whitespace are ignored
+because the list cannot be parsed any other way.