Checks
Describe the bug you encountered:
If invoked with fd /, fd fails with the following error
[fd error]: The search pattern '/' contains a path-separation character ('/') and will not lead to any search results.
If you want to search for all files inside the 'Programs/' directory, use a match-all pattern:
fd . '/'
Instead, if you want your pattern to match the full file path, use:
fd --full-path '/'
However, this behavior is inconsistent. The error message is only printed when the pattern also happens to be an existing directory. Otherwise, fd returns no error, and silently finds no files.
Describe what you expected to happen:
I would expect the error about how a pattern with a '/' in it will not lead to any search results to be displayed regardless of the pattern possibly being a directory path.
What version of fd are you using?
fd 10.3.0
Which operating system / distribution are you on?
Linux 6.18.4-arch1-1 x86_64
LSB Version: n/a
Distributor ID: Arch
Description: Arch Linux
Release: rolling
Codename: n/a
Checks
Describe the bug you encountered:
If invoked with
fd /, fd fails with the following errorHowever, this behavior is inconsistent. The error message is only printed when the pattern also happens to be an existing directory. Otherwise,
fdreturns no error, and silently finds no files.Describe what you expected to happen:
I would expect the error about how a pattern with a '/' in it will not lead to any search results to be displayed regardless of the pattern possibly being a directory path.
What version of
fdare you using?fd 10.3.0
Which operating system / distribution are you on?