Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Apr 2022 10:16:10 GMT
From:      Mateusz Piotrowski <0mp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 72aaeadf3874 - stable/13 - pw.8: Do not specify full path to shell in examples
Message-ID:  <202204111016.23BAGAqA046497@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by 0mp (doc, ports committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=72aaeadf3874d0186742206caae78078f2edb9ff

commit 72aaeadf3874d0186742206caae78078f2edb9ff
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2022-04-03 12:50:28 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2022-04-11 10:15:55 +0000

    pw.8: Do not specify full path to shell in examples
    
    Providing a full path to a shell is discouraged in the description of
    the -s flag. Let's follow the best practices in the examples.
    
    MFC after:      1 week
    
    (cherry picked from commit 84733f2e9676853b9420b1443ff98ea98dadc0d6)
---
 usr.sbin/pw/pw.8 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/pw/pw.8 b/usr.sbin/pw/pw.8
index 752eb4ff4b83..d9072872bc2b 100644
--- a/usr.sbin/pw/pw.8
+++ b/usr.sbin/pw/pw.8
@@ -975,7 +975,7 @@ A new home directory at
 is created if it does not already exist.
 Finally, a random password is generated and displayed:
 .Bd -literal -offset indent
-pw useradd -n gsmith -c "Glurmo Smith" -s /bin/csh -m -w random
+pw useradd -n gsmith -c "Glurmo Smith" -s csh -m -w random
 .Ed
 .Pp
 Delete the gsmith user and their home directory, including contents.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204111016.23BAGAqA046497>