git: 4b1e2c2f77d3 - main - bsdinstall(8): Usage example of tar doesn't work

From: Daniel Ebdrup Jensen <debdrup_at_FreeBSD.org>
Date: Wed, 23 Mar 2022 21:01:00 UTC
The branch main has been updated by debdrup (doc committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=4b1e2c2f77d3baea93ee511ef9a60ce1682dc6fb

commit 4b1e2c2f77d3baea93ee511ef9a60ce1682dc6fb
Author:     Farhan Khan <farhan@farhan.codes>
AuthorDate: 2022-03-23 20:54:30 +0000
Commit:     Daniel Ebdrup Jensen <debdrup@FreeBSD.org>
CommitDate: 2022-03-23 20:59:53 +0000

    bsdinstall(8): Usage example of tar doesn't work
    
    The order of arguments in the example does not work, because tar thinks
    the directory is named -C, which does not exist and reports:
    tar: Error opening archive: Failed to open '-C'
    
    Approved by:    rpokala@ (src) on IRC
    Differential Revision:  https://reviews.freebsd.org/D34649
---
 usr.sbin/bsdinstall/bsdinstall.8 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/usr.sbin/bsdinstall/bsdinstall.8 b/usr.sbin/bsdinstall/bsdinstall.8
index 6aff3f4f3c37..e2f4f5675ea9 100644
--- a/usr.sbin/bsdinstall/bsdinstall.8
+++ b/usr.sbin/bsdinstall/bsdinstall.8
@@ -25,7 +25,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd March 26, 2021
+.Dd March 23, 2022
 .Dt BSDINSTALL 8
 .Os
 .Sh NAME
@@ -619,7 +619,7 @@ everything following a pound/hash character is ignored as a comment.
 .Ss BUILDING AUTOMATIC INSTALL MEDIA
 If building automatic install media, use tar to extract a release ISO:
 .Dl mkdir release-media
-.Dl tar xvf -C release-media FreeBSD-13.0-RELEASE-amd64-disc1.iso
+.Dl tar -C release-media -xvf FreeBSD-13.0-RELEASE-amd64-disc1.iso
 .Pp
 Then place a script as above in
 .Pa etc/installerconfig