lsd
lsd copied to clipboard
[Bug]: Inconsistent Behavior of `lsd -al` with Symbolic Link Folders on Windows vs. Linux
- os: Windows
-
lsd --version: lsd 1.1.5 -
echo $TERM: -
echo $LS_COLORS:
On Windows, when using lsd -al, the command does not display the contents of symbolic link folders marked with a trailing / (e.g., symlink_dir/). This behavior differs from Linux, where the contents of such symbolic links are shown as expected.
Direcotry Structure:
$ lsd --tree test_dir
test_dir
├── link_dir ⇒ real_dir
└── real_dir
├── config.json
└── file.txt
link_dir is created using mklink /D link_dir real_dir under test_dir
Expected behavior
$ lsd -al test_dir/link_dir/
d---- ? ? 0 B Fri Apr 18 21:33:26 2025 .
d---- ? ? 0 B Fri Apr 18 21:35:18 2025 ..
.a--- ? ? 0 B Fri Apr 18 21:33:19 2025 config.json
.a--- ? ? 0 B Fri Apr 18 21:33:12 2025 file.txt
Actual behavior
$ lsd -al test_dir/link_dir/
l---- ? ? 0 B Fri Apr 18 21:34:07 2025 test_dir/link_dir/ ⇒ real_dir
I am getting the same issue. Not only is it displaying symlinks incorrectly, but it is not displaying binaries at all in /usr/local/bin on ubuntu wsl. Using default config.
lsd -lha output:
drwxr-xr-x root root 0 B Wed Oct 2 15:52:54 2024 ..
lrwxrwxrwx root root 6 B Wed Oct 2 15:51:41 2024 apt ⇒ no-apt
lrwxrwxrwx root root 6 B Wed Oct 2 15:51:41 2024 apt-cache ⇒ no-apt
lrwxrwxrwx root root 6 B Wed Oct 2 15:51:41 2024 apt-get ⇒ no-apt
.rwxr-xr-x root root 77 B Wed Oct 2 15:51:41 2024 no-apt
command ls -la output:
drwxr-xr-x 14 root root 4096 Feb 5 14:51 ..
-rw-r--r-- 1 1001 127 1140 Jul 21 2024 LICENSE.md
-rw-r--r-- 1 1001 127 40413 Jul 21 2024 README.md
lrwxrwxrwx 1 root root 37 Feb 2 2024 aws -> /usr/local/aws-cli/v2/current/bin/aws
lrwxrwxrwx 1 root root 47 Feb 2 2024 aws_completer -> /usr/local/aws-cli/v2/current/bin/aws_completer
-rwxr-xr-x 1 root root 17616896 Apr 4 2024 lazygit
lrwxrwxrwx 1 root root 41 Mar 14 16:21 nvim -> /usr/local/lib/nvim-linux-x86_64/bin/nvim
-rwxr-xr-x 1 brian brian 19689624 Mar 13 18:08 saml2aws
-rwxr-xr-x 1 root root 9853416 Jan 2 2024 starship
-rwxr-xr-x 1 root root 27238400 Jan 2 2024 tflint
-rwxr-xr-x 1 root root 10211328 Feb 20 2024 tfswitch
-rwxr-xr-x 1 root root 1197504 Feb 20 12:02 tmux
-rwxr-xr-x 1 brian brian 1137152 Apr 8 2024 win32yank.exe