Public bug reported:

Summary

The uutils implementation of ls produces different ordering than GNU ls
when sorting by name and hidden files are present.

Environment

Ubuntu 26.04
Package: coreutils-from-uutils
ls version: uutils coreutils 0.8.0

Expected behavior

Sorting using:

    ls -a1 --sort=name

should produce the same ordering as GNU ls.

Actual behavior

The ordering differs from GNU ls.

Minimal reproduction

mkdir test-ls-sort
cd test-ls-sort

touch .alpha .bravo .charlie .delta
touch .BOINC .adobe .android .bashrc

mkdir Activities
mkdir Desktop
mkdir Downloads

Compare:

    gnuls -a1 --sort=name

and

    ls -a1 --sort=name

GNU ls output begins with:

    .
    ..
    Activities
    .adobe
    .alpha
    .android
    .bashrc
    .BOINC
    .bravo
    .charlie
    .delta
    Desktop
    Downloads

uutils ls output begins with:

    .
    ..
    .BOINC
    .adobe
    .alpha
    .android
    .bashrc
    .bravo
    .charlie
    .delta
    Activities
    Desktop
    Downloads

The results differ despite both commands using --sort=name.

Additional information

The issue is reproducible on multiple Ubuntu 26.04 systems.

GNU ls and uutils ls are installed on the same systems and can be
compared directly.

ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: coreutils-from-uutils 0.0.0~ubuntu25
ProcVersionSignature: Ubuntu 7.0.0-29.29-generic 7.0.12
Uname: Linux 7.0.0-29-generic x86_64
ApportVersion: 2.34.1-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: KDE
Date: Fri Aug 14 12:01:20 2026
InstallationDate: Installed on 2017-10-04 (3236 days ago)
InstallationMedia: Kubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
PackageArchitecture: all
SourcePackage: coreutils-from
UpgradeStatus: Upgraded to resolute on 2026-08-09 (5 days ago)
modified.conffile..etc.default.apport: [modified]
mtime.conffile..etc.default.apport: 2020-03-07T06:19:51.554722

** Affects: coreutils-from (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug resolute wayland-session

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2163478

Title:
  uutils ls produces different name sorting than GNU ls for hidden files
  and directories

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coreutils-from/+bug/2163478/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to