Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Aug 2003 23:10:19 -0700 (PDT)
From:      Peter Pentchev <roam@ringlet.net>
To:        freebsd-doc@FreeBSD.org
Subject:   Re: docs/55298: typo in the man page for pw
Message-ID:  <200308060610.h766AJAD044712@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR docs/55298; it has been noted by GNATS.

From: Peter Pentchev <roam@ringlet.net>
To: Rich Gorasso <rgorasso@sentex.net>
Cc: bug-followup@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@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@straylight ~]> sudo pw useradd testuser
 otp-md5 372 stray ext
 Password:
 [roam@straylight ~]> finger testuser
 Login: testuser                         Name: User Testuser
 Directory: /home/testuser               Shell: /bin/sh
 Never logged in.
 No Mail.
 No Plan.
 [roam@straylight ~]> sudo pw userdel testuser
 [roam@straylight ~]> finger testuser
 finger: testuser: no such user
 [roam@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@ringlet.net    roam@sbnd.net    roam@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.



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