fd
fd copied to clipboard
[BUG] Wrong result when --full-path and ..
Checks
- [X] I have read the troubleshooting section and still think this is a bug.
Describe the bug you encountered:
mkdir /tmp/1
cd /tmp/1
touch foo
mkdir /tmp/1/2
cd /tmp/1/2
fd --full-path -t f '/tmp/1/foo' ..
# no result here, but expected: ../foo
fd --full-path -t f '/tmp/1/.*/.*/foo' ..
# it seems to me that this result should not be here, but the result is: ../foo
Describe what you expected to happen:
No response
What version of fd
are you using?
fd 9.0.0
Which operating system / distribution are you on?
$ uname -srm
Linux 6.5.9-t2-lunar x86_64
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 23.04
Release: 23.04
Codename: lunar