lsd-rs / lsd-rs/lsd

[Bug]: Incompatible behavior with `ls` with newlines

Open
#1,072 2 comments 0 reactions 1 assignee View on GitHub

@zwpaper is already working on this.

Since Jul 6, 2024.

Dominant language
Rust
Stars
16.2k
Forks
510
PR merge metrics
No merged PRs in 30d

Description

Version
  • latest
version

1.1.2

What OS are you seeing the problem on?

macOS

installation

cargo install lsd

term

xterm-256color

ls-colors

di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43

What happened?
When trying to count words using `wc` I am getting different output. 

Repro steps

mkdir temp
cd temp
touch {00..40}.tmp
lsd | wc
#       3      41     327
/bin/ls | wc
#       41      41     287


Expected output:
  41      41     287
Actual output:
  3      41     287
What expected?
The line count for output _should_ be consistent with `/bin/ls`
What else?

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.