Skip to content

ls (and du) block size specification with thousands separator fails #9084

@hhmitchell

Description

@hhmitchell

I just upgraded to Ubuntu 25.10 and got an error with ls:

% /bin/ls --version
/bin/ls (uutils coreutils) 0.2.2
% /bin/ls -l --block-size="1"
total 12288
drwxr-xr-x 22 user user 4096 Oct 26 09:18 documents
drwx------  3 user user 4096 May  2 21:56 snap
drwxr-xr-x  9 user user 4096 Oct 27 11:33 temp
lrwxrwxrwx  1 user user   14 Oct  2 23:05 tmp -> /run/user/1000
% /bin/ls -l --block-size="'1"
bin/ls: invalid --block-size argument ''1'
% printf "%'d\n" 4096
4,096

According to https://www.gnu.org/software/coreutils/manual/html_node/Block-size.html, the leading quote should add a thousands separator. It's possible that this was being silently ignored before the upgrade and I never noticed, but now it's throwing an error. I have LC_NUMERIC=en_US.UTF-8 and the last printf command shows that's in effect.

du suffers the same, though df appears to work as intended.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions