docs/55298: typo in the man page for pw

Peter Pentchev roam at ringlet.net
Wed Aug 6 06:10:20 UTC 2003


The following reply was made to PR docs/55298; it has been noted by GNATS.

From: Peter Pentchev <roam at ringlet.net>
To: Rich Gorasso <rgorasso at sentex.net>
Cc: bug-followup at FreeBSD.org
Subject: Re: docs/55298: typo in the man page for pw
Date: Wed, 6 Aug 2003 09:02:36 +0300

 On Tue, Aug 05, 2003 at 06:08:19PM -0400, Rich Gorasso wrote:
 > 
 > >Number:         55298
 > >Category:       docs
 > >Synopsis:       typo in the man page for pw
 > >Originator:     Rich Gorasso
 > >Release:        FreeBSD 4.8-STABLE i386
 > >Organization:
 > Sentex Communications
 > >Environment:
 > System: FreeBSD granite.sentex.ca 4.8-STABLE FreeBSD 4.8-STABLE #1: Wed May 21 16:40:30 EDT 2003 damian at newgranite.sentex.ca:/usr/obj/usr/src/sys/granite i386
 > 
 > >Description:
 > 	The man page for pw reads "pw useradd", "pw userdel", "pw groupadd" etc but it really should read "pw user add", "pw user del", "pw group add" etc.   It's just a typo no big deal because if you do a "pw help" it show you the correct syntax.  Thanks for your time.
 > >How-To-Repeat:
 > 	Type 'man pw'. Read.
 > >Fix:
 > 
 > 	Insert spaces where appropriate.
 
 [roam at straylight ~]> sudo pw useradd testuser
 otp-md5 372 stray ext
 Password:
 [roam at straylight ~]> finger testuser
 Login: testuser                         Name: User Testuser
 Directory: /home/testuser               Shell: /bin/sh
 Never logged in.
 No Mail.
 No Plan.
 [roam at straylight ~]> sudo pw userdel testuser
 [roam at straylight ~]> finger testuser
 finger: testuser: no such user
 [roam at straylight ~]>
 
 Seems just fine to me the way it is...
 Take a look a little further down in the pw(8) manual page, at the start
 of the second paragraph of the description, where it says:
 
  The first one or two keywords provided to pw on the command line provide
  the context for the remainder of the arguments.  The keywords user and
  group may be combined with add, del, mod, show, or next in any order.
  (For example, showuser, usershow, show user, and user show all mean the
  same thing.)
 
 Thus, pw(8) honors most of the syntax that could come to one's mind :)
 
 G'luck,
 Peter
 
 -- 
 Peter Pentchev	roam at ringlet.net    roam at sbnd.net    roam at FreeBSD.org
 PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
 Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
 If this sentence didn't exist, somebody would have invented it.



More information about the freebsd-doc mailing list