[Bug]: Incompatible behavior with `ls` with newlines
Open
@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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.