Debian Bug report logs - #1016456
coreutils: who default isn't -s, -s doesn't force "only name, line, and time" output

version graph

Package: coreutils; Maintainer for coreutils is Michael Stone <[email protected]>; Source for coreutils is src:coreutils (PTS, buildd, popcon).

Reported by: наб <[email protected]>

Date: Sun, 31 Jul 2022 23:09:02 UTC

Severity: normal

Found in version coreutils/8.32-4

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Michael Stone <[email protected]>:
Bug#1016456; Package coreutils. (Sun, 31 Jul 2022 23:09:04 GMT) (full text, mbox, link).


Acknowledgement sent to наб <[email protected]>:
New Bug report received and forwarded. Copy sent to Michael Stone <[email protected]>. (Sun, 31 Jul 2022 23:09:04 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: наб <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: coreutils: who default isn't -s, -s doesn't force "only name, line, and time" output
Date: Mon, 1 Aug 2022 01:04:44 +0200
[Message part 1 (text/plain, inline)]
Package: coreutils
Version: 8.32-4+b1
Severity: normal

Dear Maintainer,

Quoth who(1):
-- >8 --
       -s, --short
              print only name, line, and time (default)
-- >8 --

Compare who -H:
-- >8 --
NAME     LINE         TIME             COMMENT
nabijaczleweli pts/0        2022-07-31 14:33 (192.168.1.109)
nabijaczleweli pts/2        2022-07-31 16:22 (192.168.1.109)
nabijaczleweli pts/3        2022-07-31 16:22 (192.168.1.109)
misio    pts/4        2022-07-31 16:23 (192.168.1.1)
-- >8 --
(and note that the columnation is broken like in pinky (#1016117)).

Problem 1: <name> <line> <time> is not the default output.


Quoth POSIX Issue 7:
-- >8 --
-s
    [XSI] [Option Start] List only the
    <name>, <line>, and <time> fields.
    This is the default case. [Option End]
-- >8 --

I think it's reasonable to have the default output also have <comment>,
but it's non-conformant to have no way (I think?) to hide it.

This also contradicts the manual.

Best,
наб

-- System Information:
Debian Release: 11.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-16-amd64 (SMP w/24 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages coreutils depends on:
ii  libacl1      2.2.53-10
ii  libattr1     1:2.4.48-6
ii  libc6        2.31-13+deb11u3
ii  libgmp10     2:6.2.1+dfsg-1+deb11u1
ii  libselinux1  3.1-3

coreutils recommends no packages.

coreutils suggests no packages.

-- no debconf information
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 09:21:55 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.