Subject: Re: bug#68866: man page description of pwd command has error I guess

From: Bernhard Voelker <[email-masked]>
Date: Thu, 1 Feb 2024 08:37:05 +0100

tag 68866 notabug
close 68866
stop

On 2/1/24 04:09, Seungchul Lee wrote:
> man page description has following line,
> "If no option is specified, -P is assumed."
> But in my machine, its default behavior seems -L without any option for pwd.

'man pwd' and 'env pwd --help' also tells:

   NOTE: your shell may have its own version of pwd, which usually supersedes
   the version described here.  Please refer to your shell's documentation
   for details about the options it supports.

Are you sure that you are running pwd(1) from GNU coreutils, or that of the shell?

   $ pwd            # pwd of the shell
   /home/berny/osc

   $ env pwd        # pwd of GNU coreutils
   /media/osc

   $ /usr/bin/pwd   # pwd of GNU coreutils
   /media/osc

Have a nice day,
Berny