sharkdp / fd

A simple, fast and user-friendly alternative to 'find'
Apache License 2.0
33.49k stars 798 forks source link

[BUG] --list-details fail on windows ( missing ls error ) while using nushell that has ls exposed #1482

Open galop1n opened 8 months ago

galop1n commented 8 months ago

Checks

Describe the bug you encountered:

Use nushell as your terminal on windows, and run any fd -l command

[fd error]: 'fd --list-details' is not supported on Windows unless GNU 'ls' is installed.

Describe what you expected to happen:

There should be a way for fd to detect nushell and use his ls version an alternative would be to have an option to specify the ls command ( if you use a replacement like exa )

What version of fd are you using?

8.7.1

Which operating system / distribution are you on?

Windows 11
tmccombs commented 5 months ago

AFAIK, nushell doesn't include an ls executable. lt is a shell builtin. And this is a somewhat niche use case.

Also, you could still get similar functionality with --exec-batch nu -c ls -l.

Given that, my inclination is not to add this.