uutils / coreutils

Cross-platform Rust rewrite of the GNU coreutils
https://uutils.github.io/
MIT License
17.23k stars 1.24k forks source link

ls: --hyperlink -R omits parent dir when displaying child dir #6492

Open cakebaker opened 1 week ago

cakebaker commented 1 week ago

While reviewing https://github.com/uutils/coreutils/pull/6144 I discovered the following issue:

$ mkdir -p dir/subdir
$ cargo run ls --hyperlink -R dir
dir:
subdir

subdir:   <- parent dir is not shown
$ ls --hyperlink -R dir
dir:
subdir

dir/subdir:

Without --hyperlink, the correct output is shown.