Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Apr 2009 14:04:24 GMT
From:      Steven Kreuzer <skreuzer@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   docs/133424: Man page for pwd incorrectly lists default option
Message-ID:  <200904061404.n36E4OAi086035@www.freebsd.org>
Resent-Message-ID: <200904061410.n36EA2Zl009713@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



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