Open
Description
Description
When using ls -l inside a symbolic link directory (created as a symlink to another directory) on Windows, the command only displays the symbolic link itself rather than the contents of the target directory. This behavior does NOT occur when running ls without the -l flag.
# ls -l
total 0
dr-xr-xr-x 1 somebody somegroup 0 May 1 22:30 apps
drwxrwxrwx 1 somebody somegroup 0 Mar 23 14:15 media
lr-xr-xr-x 1 somebody somegroup 0 Mar 23 14:36 pkgs -> 'E:\pkgs'
lr-xr-xr-x 1 somebody somegroup 0 May 1 23:21 scoop -> '.\apps\scoop'
# cd scoop && ls -l
lr-xr-xr-x 1 somebody somegroup 0 May 1 23:21 . -> '.\apps\scoop'
# ls
apps buckets modules persist scoop.db shims workspace
Environment
OS infomation
版本 Windows 11 专业版
版本号 24H2
安装日期 2025/2/16
操作系统版本 26100.3915
体验 Windows 功能体验包 1000.26100.83.0
ls version
ls 0.0.30