Bug 230716 - ls: compact columnts layout
Summary: ls: compact columnts layout
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 11.2-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-17 20:56 UTC by vermaden
Modified: 2018-08-17 21:56 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vermaden 2018-08-17 20:56:45 UTC
How FreeBSD's ls(1) behaves:

% ls
bin/       etc/       mnt/       root/      usr/
boot/      lib/       net/       sbin/      var/
COPYRIGHT  libexec/   proc/      sys
dev/       media/     rescue/    tmp/

How it should (GNU ls):

% gls
bin/   etc/      media/  proc/    sbin/  var/
boot/  lib/      mnt/    rescue/  tmp/   COPYRIGHT
dev/   libexec/  net/    root/    usr/   sys
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2018-08-17 21:06:04 UTC
Please, for heaven's sake, no.  Please do not turn us into Linux.
Comment 2 Conrad Meyer freebsd_committer 2018-08-17 21:16:51 UTC
We separate columns with tabs rather than minimal spaces.  Not sure it matters one way or the other.  I don't understand why Mark has a strong opinion about it, but I also see no reason for the change.
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2018-08-17 21:44:49 UTC
(In reply to Conrad Meyer from comment #2)

The sort order.  Please, no.

If people really want this let's get a gls port going.
Comment 4 Conrad Meyer freebsd_committer 2018-08-17 21:56:14 UTC
(In reply to Mark Linimon from comment #3)
Hm, sort order looks more like a directory-first affect (see reporter's next PR) than a column width thing.

We've got a gls port — it's part of "coreutils."
Comment 5 Conrad Meyer freebsd_committer 2018-08-17 21:56:33 UTC
(In reply to Conrad Meyer from comment #4)
s/affect/effect/, oops