With the current wording, I'd either expect usage error when passing
`-o output' or more wording explaining the behaviour when fetching
multiple files.

Usage error seems wrong since our synopsis explicitly allows it, but
writing the contents behind multiple URLs into the same file, while
truncating the file for each URL does not make much sense, either.


I came across this as I wanted to fetch multiple URLs at once without
scripting, looked at ftp(1) and didn't found anything to do that.
Tried `-o' with multiple URLs to see how it behaves as that case isn't
documented.

So should we at least go with this correction?

Index: ftp.1
===================================================================
RCS file: /cvs/src/usr.bin/ftp/ftp.1,v
retrieving revision 1.122
diff -u -p -r1.122 ftp.1
--- ftp.1       2 Feb 2021 12:58:42 -0000       1.122
+++ ftp.1       28 Jul 2021 15:46:19 -0000
@@ -212,7 +212,7 @@ will prompt for the remote machine login
 identity on the local machine) and, if necessary, prompt for a password
 and an account with which to log in.
 .It Fl o Ar output
-When fetching a single file or URL, save the contents in
+When fetching files or URLs, save the contents in
 .Ar output .
 To make the contents go to stdout,
 use

Reply via email to