[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


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236559

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;
                        break;
                case 'P':
                        physical = 1;                                  
                        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
> 

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