[Bug 70813] [patch] ls(1) not Posix compliant

[email protected]
Newsgroups gmane.os.freebsd.devel.standards
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=70813

--- Comment #5 from [email protected] ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3bfbb521fef5764ecabc2bf3fdc76f47258171f8

commit 3bfbb521fef5764ecabc2bf3fdc76f47258171f8
Author:     Minsoo Choo <[email protected]>
AuthorDate: 2023-07-18 16:49:59 +0000
Commit:     John Baldwin <[email protected]>
CommitDate: 2023-07-18 17:03:09 +0000

    ls: Improve POSIX compatibility for -g and -n.

    - Change -g (ignored for BSD 4.3 compatibility since BSD 4.4)
      to use POSIX semantics of implying -l but omitting the owner's
      name.

    - Change -n to imply -l.

    The -o option remains unchanged (POSIX defines -o as a complement to
    -g that implies -l but omits group names whereas BSD defines -o to add
    file flags to -l).  This compromise is the same used by both NetBSD
    and OpenBSD.

    PR:             70813
    Reviewed by:    jhb, Pau Amma <[email protected]>
    Co-authored-by: John Baldwin <[email protected]>
    Differential Revision:  https://reviews.freebsd.org/D34747

 bin/ls/ls.1              | 11 +++--------
 bin/ls/ls.c              | 10 +++++++++-
 bin/ls/ls.h              |  1 +
 bin/ls/print.c           |  8 +++++---
 bin/ls/tests/ls_tests.sh | 19 ++++++++++---------
 5 files changed, 28 insertions(+), 21 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.