Date: Wed, 20 Mar 2019 16:13:04 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 236559] Error in the pwd man page Message-ID: <bug-236559-227-TNbZNqHQsa@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-236559-227@https.bugs.freebsd.org/bugzilla/> References: <bug-236559-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236559 Mark Johnston <markj@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markj@FreeBSD.org --- Comment #1 from Mark Johnston <markj@FreeBSD.org> --- The code suggests otherwise: physical =3D 1; while ((ch =3D getopt(argc, argv, "LP")) !=3D -1) switch (ch) { case 'L':=20=20=20 physical =3D 0; break; case 'P': physical =3D 1;=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 break; It also appears to work as documented: > mkdir foo > ln -s foo bar > cd bar > /bin/pwd /home/mark/foo > /bin/pwd -L /home/mark/bar >=20 I suspect the problem is that the shell may provide its own pwd builtin whi= ch does indeed behave differently. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-236559-227-TNbZNqHQsa>