From owner-freebsd-doc@FreeBSD.ORG Mon Apr 6 14:10:02 2009 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 69D96106575D for ; Mon, 6 Apr 2009 14:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2B3928FC1C for ; Mon, 6 Apr 2009 14:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n36EA2w2009714 for ; Mon, 6 Apr 2009 14:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n36EA2Zl009713; Mon, 6 Apr 2009 14:10:02 GMT (envelope-from gnats) Resent-Date: Mon, 6 Apr 2009 14:10:02 GMT Resent-Message-Id: <200904061410.n36EA2Zl009713@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Steven Kreuzer Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6DDDB1065753 for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: docs/133424: Man page for pwd incorrectly lists default option X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Apr 2009 14:10:02 -0000 >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: