[Bug 236559] Error in the pwd man page

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Mar 20 16:13:08 UTC 2019


Mark Johnston <markj at FreeBSD.org> changed:

           What    |Removed                     |Added
                 CC|                            |markj at FreeBSD.org

--- Comment #1 from Mark Johnston <markj at FreeBSD.org> ---
The code suggests otherwise:

        physical = 1;
        while ((ch = getopt(argc, argv, "LP")) != -1)
                switch (ch) {
                case 'L':   
                        physical = 0;
                case 'P':
                        physical = 1;                                  

It also appears to work as documented:

> mkdir foo
> ln -s foo bar
> cd bar
> /bin/pwd
> /bin/pwd -L

I suspect the problem is that the shell may provide its own pwd builtin which
does indeed behave differently.

You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-bugs mailing list