Package: tree Version: 1.7.0-3 Severity: important Dear Maintainer,
I hope this came out right, I used "bugreport" but it was unable to send. I had to dig around in exim to find this and send it manually via gmail. Output is incorrect if index.txt file is present in the filesystem being scanned. Actually the extention of the index file can probably be anything (I came across this issue with html files) The bug is easy to reproduce and I have seen it on Debian / OSX and CYGWIN. You can paste the following to see the issue (I included the output of tree to demonstrate, you need to not paste that.) mkdir TESTING cd TESTING mkdir test1 mkdir test2 mkdir test3 touch test1/file.txt touch test2/file.txt touch test3/file.txt touch file.txt #This is as expected, for comparison tree -P *.txt . ├── file.txt ├── test1 │ └── file.txt ├── test2 │ └── file.txt └── test3 └── file.txt 3 directories, 4 files touch index.txt #Here I expect the same result as above + 1 extra file listed tree -P *.txt index.txt [error opening dir] 0 directories, 0 files mv file.txt index.txt #Again I expect the same as the first result but with the 1 extra file tree -P *.txt . ├── index.txt ├── test1 ├── test2 └── test3 3 directories, 1 file -- System Information: Debian Release: 8.2 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 3.16.0-4-586 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages tree depends on: ii libc6 2.19-18+deb8u1 tree recommends no packages. tree suggests no packages. -- no debconf information