docs/133424: Man page for pwd incorrectly lists default option

Steven Kreuzer skreuzer at FreeBSD.org
Mon Apr 6 14:10:02 UTC 2009


>Number:         133424
>Category:       docs
>Synopsis:       Man page for pwd incorrectly lists default option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 06 14:10:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Steven Kreuzer
>Release:        7.1-PRERELEASE
>Organization:
>Environment:
FreeBSD slurry.exit2shell.com 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #3: Mon Nov 24 14:01:09 EST 2008     root at simon.sddi.net:/usr/obj/usr/src/sys/KERNEL  amd64

>Description:
I think I might have found an error in the man page for pwd. It says that -P is the default if no option is specified, but it appears that -L is actually
the default.

Example:

$ cd /tmp
$ mkdir aaa
$ ln -s aaa bbb
$ ls -ld bbb
lrwxr-xr-x 1 steven wheel 3 Apr  3 17:20 bbb -> aaa
$ cd bbb
$ pwd
/tmp/bbb
$ pwd -L
/tmp/bbb
$ pwd -P
/tmp/aaa

If this is indeed an error, the attached patch will fix that.

Thanks
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: pwd.1
===================================================================
RCS file: /home/ncvs/src/bin/pwd/pwd.1,v
retrieving revision 1.26
diff -u -r1.26 pwd.1
--- pwd.1	16 Jan 2005 16:41:58 -0000	1.26
+++ pwd.1	6 Apr 2009 13:54:51 -0000
@@ -63,7 +63,7 @@
 .El
 .Pp
 If no options are specified, the
-.Fl P
+.Fl L
 option is assumed.
 .Sh ENVIRONMENT
 Environment variables used by


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-doc mailing list