summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorFernando ApesteguĂ­a <fernape@FreeBSD.org>2020-10-30 09:48:41 +0000
committerFernando ApesteguĂ­a <fernape@FreeBSD.org>2020-10-30 09:48:41 +0000
commit86e149e16e795419ea49bd937499b9fbfc4d3094 (patch)
tree552f95ab8e594a38198fc457d7d6252fcf046d01 /usr.bin
parenteb7f380f120da0248c0a9a88a5224da91ac10b0b (diff)
downloadsrc-test-86e149e16e795419ea49bd937499b9fbfc4d3094.tar.gz
src-test-86e149e16e795419ea49bd937499b9fbfc4d3094.zip
fetch(1): Fix style
Fix style problems introduced in r367141: * s/Ql/Pa/ for file names * Break line properly in macro * Properly generate back slash character Not bumping .Dd Reported by: xtouqh@icloud.com, steffen@sdaoden.eu Approved by: 0mp@ Differential Revision: https://reviews.freebsd.org/D26946
Notes
Notes: svn path=/head/; revision=367160
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/fetch/fetch.113
1 files changed, 7 insertions, 6 deletions
diff --git a/usr.bin/fetch/fetch.1 b/usr.bin/fetch/fetch.1
index a84f6bdea7cea..13ea087b7b915 100644
--- a/usr.bin/fetch/fetch.1
+++ b/usr.bin/fetch/fetch.1
@@ -389,14 +389,14 @@ Silently try to fetch the URLs passed as parameters.
The first one will fail.
If the second URL succeeds the third one will not be tried:
.Bd -literal -offset indent
-$ fetch -1 -q https://www.freebsd.org/bad.html \\
- ftp.freebsd.org/pub/FreeBSD/README.TXT \\
+$ fetch -1 -q https://www.freebsd.org/bad.html \e
+ ftp.freebsd.org/pub/FreeBSD/README.TXT \e
https://www.fake.url
fetch: https://www.freebsd.org/bad.html: Not Found
.Ed
.Pp
Be verbose when retrieving the
-.Ql README.TXT
+.Pa README.TXT
file:
.Bd -literal -offset indent
$ fetch -v ftp.freebsd.org/pub/FreeBSD/README.TXT
@@ -408,8 +408,9 @@ README.TXT 4259 B 44 MBps 00s
.Ed
.Pp
Quietly save the
-.Ql README.TXT file as
-.Ql myreadme.txt
+.Pa README.TXT
+file as
+.Pa myreadme.txt
and do not delete the output file under any circumstances:
.Bd -literal -offset indent
fetch -o myreadme.txt -q -R ftp.freebsd.org/pub/FreeBSD/README.TXT
@@ -424,7 +425,7 @@ $ fetch -s ftp.freebsd.org/pub/FreeBSD/README.TXT
.Ed
.Pp
Restart the transfer of the
-.Ql README.TXT
+.Pa README.TXT
file and retry the transfer upon soft failures:
.Bd -literal -offset indent
$ fetch -a -r http://ftp.freebsd.org/pub/FreeBSD/README.TXT