From nobody@FreeBSD.org  Mon Apr  6 14:04:25 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6DDDB1065753
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  6 Apr 2009 14:04:25 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 336D58FC16
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  6 Apr 2009 14:04:25 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n36E4PtU086037
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 6 Apr 2009 14:04:25 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n36E4OAi086035;
	Mon, 6 Apr 2009 14:04:24 GMT
	(envelope-from nobody)
Message-Id: <200904061404.n36E4OAi086035@www.freebsd.org>
Date: Mon, 6 Apr 2009 14:04:24 GMT
From: Steven Kreuzer <skreuzer@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Man page for pwd incorrectly lists default option
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         133424
>Category:       docs
>Synopsis:       Man page for pwd incorrectly lists default option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 06 14:10:01 UTC 2009
>Closed-Date:    Mon Apr 06 15:17:45 UTC 2009
>Last-Modified:  Mon Apr  6 15:20:01 UTC 2009
>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:
State-Changed-From-To: open->closed 
State-Changed-By: skreuzer 
State-Changed-When: Mon Apr 6 15:17:44 UTC 2009 
State-Changed-Why:  
turns out zsh has pwd as a builtin. The man page for /bin/pwd is correct 

http://www.freebsd.org/cgi/query-pr.cgi?pr=133424 

From: Steven Kreuzer <skreuzer@FreeBSD.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/133424: Man page for pwd incorrectly lists default option
Date: Mon, 6 Apr 2009 11:09:50 -0400

 never mind. I suck.
 
 $ which pwd
 pwd: shell built-in command
 
 stupid zsh. This ticket can be closed.
 
 --
 Steven Kreuzer
 http://www.exit2shell.com/~skreuzer
 
>Unformatted:
