Bug 133424

Summary: Man page for pwd incorrectly lists default option
Product: Documentation Reporter: Steven Kreuzer <skreuzer>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Steven Kreuzer freebsd_committer freebsd_triage 2009-04-06 15:10:01 UTC
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

Fix: Patch attached with submission follows:
Comment 1 Steven Kreuzer freebsd_committer freebsd_triage 2009-04-06 16:09:50 UTC
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
Comment 2 Steven Kreuzer freebsd_committer freebsd_triage 2009-04-06 16:17:44 UTC
State Changed
From-To: open->closed

turns out zsh has pwd as a builtin. The man page for /bin/pwd is correct