fd icon indicating copy to clipboard operation
fd copied to clipboard

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

Open galop1n opened this issue 1 year ago • 1 comments

Checks

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

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

galop1n avatar Jan 19 '24 18:01 galop1n

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.

tmccombs avatar Apr 27 '24 15:04 tmccombs