Date: Fri, 06 Feb 2026 17:30:10 +0100 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org> To: Simon Wollwage <rootnode+freebsd@wollwage.com> Cc: freebsd-questions@freebsd.org Subject: Re: pwd default behavior Message-ID: <86ms1lbzsd.fsf@ltc.des.dev> In-Reply-To: <877bsqe6m0.fsf@x1.laptops.machines> (Simon Wollwage's message of "Fri, 06 Feb 2026 15:19:51 %2B0900") References: <877bsqe6m0.fsf@x1.laptops.machines>
index | next in thread | previous in thread | raw e-mail
Simon Wollwage <rootnode+freebsd@wollwage.com> writes: > While reading the code for /bin/pwd, I noticed that the default behavior > in the code is to assume -P if no arguments are supplied, but according > to POSIX it shoud be -L > (https://pubs.opengroup.org/onlinepubs/9799919799/utilities/pwd.html) > > Is it for convenience reasons or other technical reasons? Seems like an > easy change to make it compliant. It makes very little difference in practice as pwd(1) is usually a shell built-in, but: https://reviews.freebsd.org/D55146 DES -- Dag-Erling Smørgrav - des@FreeBSD.orghome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86ms1lbzsd.fsf>
