Hello Steve, this came in to the Debian BTS, cf. <https://bugs.debian.org/934520> as well as the full list at <https://bugs.debian.org/cgi-bin/pkgreport.cgi?src=tree>.
JFYI and for your consideration. Cheers, Flo
--- Begin Message ---Package: tree Version: 1.8.0-1+b1 Severity: normal Dear Maintainer, tree introduced with its version 1.8 a --filefrom option, so a tree can be build from a file. There's a problem if the file contains a symbolic link. Let's take the following test.tree file : $ cat /tmp/test.tree /tmp/test /tmp/test/status -> /var/lib/logrotate/status /tmp/test/t1 /tmp/test/t2 $ tree --fromfile /tmp/test.tree produces the following output : /tmp/test.tree ????????? tmp ????????? test ????????? status -> ??????? ????????? var ??????? ????????? lib ??????? ????????? logrotate ??????? ????????? status ????????? t1 ????????? t2 The symbolic link target (->) is treated like a subtree of the symlink, which is wrong. I had rather expected this outout : $ tree /tmp/test /tmp/test ????????? status -> /var/lib/logrotate/status ????????? t1 ????????? t2 -- System Information: Debian Release: 9.2 APT prefers stable APT policy: (500, 'stable'), (500, 'oldstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.13.0-0.bpo.1-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.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.24-11+deb9u1 tree recommends no packages. tree suggests no packages. -- no debconf information
--- End Message ---

