Package: tree
Version: 1.6.0-1

        Apparently, tree(1) is currently lacking support for the “--”
        POSIX option terminator:

$ tree -- /usr 
tree: Invalid argument -`-'.
usage: tree [-acdfghilnpqrstuvxACDFQNSUX] [-H baseHREF] [-T title ] [-L level 
[-R]]
        [-P pattern] [-I pattern] [-o filename] [--version] [--help] [--inodes]
        [--device] [--noreport] [--nolinks] [--dirsfirst] [--charset charset]
        [--filelimit[=]#] [--si] [--timefmt[=]<f>] [<directory list>]
$ 

        Also, the --help output is being sent to stderr (thus requiring
        $ tree --help 2>&1 | less instead of the conventional
        $ tree --help | less), and the -S option description is
        misleading:

$ tree --help 2>&1 > /dev/null 
…
  ------- Graphics options ------
  -i            Don't print indentation lines.
  -A            Print ANSI lines graphic indentation lines.
  -S            Print with ASCII graphics indentation lines.
  -n            Turn colorization off always (-C overrides).
  -C            Turn colorization on always.
…
$ 

        Namely, contrary to the description, non-ASCII codes (i. e.,
        non-7 bit) are used for the (pseudo)graphic decorations:

$ tree -S -d /usr | head | cat --show-nonprinting 
/usr
M-CM-DM-D bin
M-3   M-@M-DM-D X11 -> .
M-CM-DM-D games
M-CM-DM-D include
M-3   M-CM-DM-D CL
M-3   M-CM-DM-D GL
M-3   M-3   M-@M-DM-D internal
M-3   M-CM-DM-D X11
M-3   M-3   M-CM-DM-D Xtrans
$ 

        As a work-around, ASCII output may be forced by disabling
        localization, like:

$ LC_ALL=C tree -d /usr | head | cat --show-nonprinting 
/usr
|-- bin
|   `-- X11 -> .
|-- games
|-- include
|   |-- CL
|   |-- GL
|   |   `-- internal
|   |-- X11
|   |   |-- Xtrans
$ 

-- 
FSF associate member #7257


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to