`fd-find` 有内部最大深度吗?

`fd-find` 有内部最大深度吗?

我有一堆文件,其名称类似于fn._mm*子目录中的名称:

...
./homedots/vim/plugged/YouCompleteMe/third_party/ycmd/third_party/rust-analyzer/share/doc/rust/html/core/core_arch/x86_64/avx512f/fn._mm_cvttss_i64.html
./homedots/vim/plugged/YouCompleteMe/third_party/ycmd/third_party/rust-analyzer/share/doc/rust/html/core/core_arch/x86_64/avx512f/fn._mm_cvtt_roundsd_i64.html
./homedots/vim/plugged/YouCompleteMe/third_party/ycmd/third_party/rust-analyzer/share/doc/rust/html/core/core_arch/x86_64/avx512f/fn._mm_cvt_roundss_i64.html
./homedots/vim/plugged/YouCompleteMe/third_party/ycmd/third_party/rust-analyzer/share/doc/rust/html/core/core_arch/x86_64/avx512f/fn._mm_cvtt_roundss_i64.html
./homedots/vim/plugged/YouCompleteMe/third_party/ycmd/third_party/rust-analyzer/share/doc/rust/html/core/core_arch/x86_64/avx512f/fn._mm_cvtsd_i64.html
./homedots/vim/plugged/YouCompleteMe/third_party/ycmd/third_party/rust-analyzer/share/doc/rust/html/core/core_arch/x86_64/avx512f/fn._mm_cvttsd_i64.html
./homedots/vim/plugged/YouCompleteMe/third_party/ycmd/third_party/rust-analyzer/share/doc/rust/html/core/core_arch/x86_64/avx512f/fn._mm_cvt_roundsd_i64.html
...

如果我使用 查找这些文件find -iname "fn._mm*",我可以毫无问题地找到它们,事实上这就是我打印上面几行的方式。

但当使用时fd-find

fd fn._mm

或者

fd "fn._mm"

什么也不产生。即使在我的模式末尾使用--glob开关和星号 ( ),它也不会产生任何结果。*

然而,如果我深入几个目录(在上面的示例中我必须cd进入homedots/vim/plugged/YouCompleteMe/third_party/ycmd/third_party/rust-analyzer),我现在可以找到我正在寻找的文件fd-find

fd "fn._mm"
...
share/doc/rust/html/core/core_arch/x86_64/avx512f/fn._mm_cvttss_i64.html
share/doc/rust/html/core/core_arch/x86_64/avx512f/fn._mm_cvtt_roundsd_i64.html
share/doc/rust/html/core/core_arch/x86_64/avx512f/fn._mm_cvt_roundss_i64.html
share/doc/rust/html/core/core_arch/x86_64/avx512f/fn._mm_cvtt_roundss_i64.html
share/doc/rust/html/core/core_arch/x86_64/avx512f/fn._mm_cvtsd_i64.html
share/doc/rust/html/core/core_arch/x86_64/avx512f/fn._mm_cvttsd_i64.html
share/doc/rust/html/core/core_arch/x86_64/avx512f/fn._mm_cvt_roundsd_i64.html
...

--max-depth中未设置fd-find,并且之间没有符号链接(-L不过,我仍然检查了开关以确保)。

是否存在错误,或者我缺少其他一些限制?

目前,解决方案是简单地使用findand fd-find,当我不确定时,但我更喜欢使用fd-find

相关内容