[Bug 265624] bin/pwd default behavior according to man page like -P but is like -L
Date: Thu, 04 Aug 2022 08:41:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265624 Bug ID: 265624 Summary: bin/pwd default behavior according to man page like -P but is like -L Product: Base System Version: 12.3-STABLE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: pascalullrich@web.de FreeBSD 12.3-STABLE #1 r371380 From man pwd: "If no options are specified, the -P option is assumed." My tests show that the -L option is assumed. [ullrich@bsd106 ~/tmp]$ ls -l total 4 drwxr-xr-x 2 ullrich ullrich 512 3 Aug. 17:13 abc lrwxr-xr-x 1 ullrich ullrich 3 3 Aug. 17:13 def -> abc [ullrich@bsd106 ~/tmp]$ cd abc [ullrich@bsd106 ~/tmp/abc]$ pwd /home/ullrich/tmp/abc [ullrich@bsd106 ~/tmp/abc]$ pwd -L /home/ullrich/tmp/abc [ullrich@bsd106 ~/tmp/abc]$ pwd -P /home/ullrich/tmp/abc [ullrich@bsd106 ~/tmp/abc]$ cd ../def [ullrich@bsd106 ~/tmp/def]$ pwd /home/ullrich/tmp/def [ullrich@bsd106 ~/tmp/def]$ pwd -L /home/ullrich/tmp/def [ullrich@bsd106 ~/tmp/def]$ pwd -P /home/ullrich/tmp/abc -- You are receiving this mail because: You are the assignee for the bug.