* doc/coreutils.texi (whoami invocation): Clarify it prints names,
not numeric IDs.
* man/whoami.x: Likewise.
* man/logname.x: Reference getlogin(3).
* src/logname.c: Clarify that it prints the login name,
rather than the name of the effective user ID.
Fixes https://bugs.gnu.org/48894
@node whoami invocation
-@section @command{whoami}: Print effective user ID
+@section @command{whoami}: Print effective user name
@pindex whoami
-@cindex effective user ID, printing
+@cindex effective user name, printing
@cindex printing the effective user ID
@command{whoami} prints the user name associated with the current
logname \- print user\'s login name
[DESCRIPTION]
.\" Add any additional description here
+[SEE ALSO]
+getlogin(3)
[NAME]
-whoami \- print effective userid
+whoami \- print effective user name
[DESCRIPTION]
.\" Add any additional description here
{
printf (_("Usage: %s [OPTION]\n"), program_name);
fputs (_("\
-Print the name of the current user.\n\
+Print the user's login name.\n\
\n\
"), stdout);
fputs (HELP_OPTION_DESCRIPTION, stdout);