Skip to content

[BUG] --list-details / -X ls -ld gives argument list too long #1775

@skwde

Description

@skwde

Checks

  • I have read the troubleshooting section and still think this is a bug.

Describe the bug you encountered:

fd-v10.2.0-x86_64-unknown-linux-gnu/fd --full-path <some path with many files> --unrestricted --list-details

gives

[fd error]: Problem while executing command: Argument list too long (os error 7)

This only happens when -X or --list-details is used.

fd-v10.2.0-x86_64-unknown-linux-gnu/fd --full-path <some path with many files> --unrestricted | wc -l

gives

890439

Describe what you expected to happen:

Fast listing details such as owner / group / size / ... similar to ls -ld or find <> -printf '%u %g %T@ %M %s "%p"\n'.

As soon as I use --list-details with --batch-size to get rid of above error fd we are comparable if not slower than find. (I didn't do serious speed tests, just time on a couple of trails.)

What version of fd are you using?

fd 10.2.0

Which operating system / distribution are you on?

Linux 4.18.0-372.16.1.el8_6.x86_64 x86_64

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions