Subject: bug#76876: logname output is often wrong when linked with glibc

From: Paul Eggert <[email-masked]>
Date: Sun, 9 Mar 2025 20:13:42 -0700

On 2025-03-09 11:49, Bruno Haible wrote:
> Nicolas Boos wrote:
>> This page says that the result of the logname command and the LOGNAME
>> variable must be the same:
>> https://www.ibm.com/docs/en/aix/7.3?topic=l-logname-command
> An AIX man page is not a specification for what we run on GNU systems.

Plus, that AIX man page is wrong even for AIX. Here's a /bin/sh 
transcript on AIX:

   $ export LOGNAME=ouch
   $ env | grep LOGNAME
   LOGNAME=ouch
   $ logname
   eggert
   $ uname -a
   AIX gcc119 3 7 00F9C1964C00

I.e., AIX agrees with GNU and conforms to POSIX.