Skip to content

ls --classify not wrapping lines correctly #7526

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
m13253 opened this issue Mar 22, 2025 · 0 comments · Fixed by #7616
Closed

ls --classify not wrapping lines correctly #7526

m13253 opened this issue Mar 22, 2025 · 0 comments · Fixed by #7616
Labels

Comments

@m13253
Copy link

m13253 commented Mar 22, 2025

Steps to reproduce:

$ cd an_empty_directory

$ mkdir Applications 'Calibre Library' Desktop Documents Downloads Dropbox

$ mkdir Library Movies Music Pictures Public 'Virtual Machines'

$ echo $COLUMNS
80

$ /opt/homebrew/opt/uutils-coreutils/libexec/uubin/ls
 Applications       Documents   Library   Pictures
'Calibre Library'   Downloads   Movies    Public
 Desktop            Dropbox     Music    'Virtual Machines'

$ /opt/homebrew/opt/uutils-coreutils/libexec/uubin/ls -F
 Applications/           Desktop/        Downloads/      Library/        Music/ 
         Public/
'Calibre Library'/       Documents/      Dropbox/        Movies/         Picture
s/      'Virtual Machines'/

As we can see, the entry “Pictures” is broken into two lines.

Expected behavior (GNU ls):

$ /opt/homebrew/opt/coreutils/libexec/gnubin/ls -F
 Applications/       Documents/   Library/   Pictures/
'Calibre Library'/   Downloads/   Movies/    Public/
 Desktop/            Dropbox/     Music/    'Virtual Machines'/

For another reference (macOS ls):

$ /bin/ls -F
Applications/           Downloads/              Music/
Calibre Library/        Dropbox/                Pictures/
Desktop/                Library/                Public/
Documents/              Movies/                 Virtual Machines/

Versions:

  • uutils-coreutils 0.0.30 (Installed through Homebrew)
  • GNU coreutils 9.6 (Installed through Homebrew)
  • macOS Sequoia 15.3.2 (24D81)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants